home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 4 / Precision Software Applications Silver Collection Volume 4 (1993).iso / stats / mathx30.exe / MATHX.DOC < prev    next >
Text File  |  1991-08-07  |  170KB  |  4,291 lines

  1.  
  2.  
  3.  
  4.          MATHX.DOC
  5.          
  6.          All the MATHX programs and related software and documentation are
  7.          Copyright 1989, 1990, 1991 by David Denker.
  8.          All rights reserved.
  9.          
  10.          You may copy the following files and give them to anyone who
  11.          agrees to the following terms.  The copies must be complete and
  12.          unmodified and all program files must be included.  The files
  13.          must be from the same version arcived file or package.
  14.          
  15.               MATHX.COM           FINANCE.APL         MATHXR.COM
  16.               MATHX.DFT           ONEARM.APL          MATHXR.DFT
  17.               MATHX.ENV           TRIANGLE.UTL        MATHX.VAR
  18.               MATHX.HLP           INSTALL.BAT         ONEARM.ENV
  19.               MATHX.DOC           CONVERT.UTL         FINANCE.ENV
  20.               MATHX.BAT           GRAPH.UTL           MATHXDEM.ENV
  21.               MATHX.MEM           MATHX.SET           MX-READ.ME
  22.               MATHX.PIF           FINANCE.APR         MXR-READ.ME
  23.               MATHX.ICO           MATHXDEM.APL        
  24.          
  25.          Sysops or operators of electronic bulletin board systems may post
  26.          these files in arcive form or as a group for downloading by their
  27.          users only as long as the above conditions are met.  Please
  28.          support my products by honoring this restriction.
  29.          
  30.          Please remember the good spirit of free-distribution software.  If
  31.          you find this software good enough to use, I trust that you will
  32.          pay for it.  Only then can I improve on it and continue to offer
  33.          it to you and other users.
  34.          
  35.          If you are a registered user, Thank-you for your support.
  36.          
  37.          The MATHX programs have been thoroughly debugged but if you find
  38.          bugs in my programs, please contact me.  I will fix them!  It is
  39.          very frustrating to hear someone tell other people about a bug
  40.          that I have not been told about.
  41.          My address is:
  42.               David Denker
  43.               204 4th Ave. S.
  44.               P. O. Box 115
  45.               Isanti, Mn. 55040
  46.          
  47.          My phone number is:
  48.               612-444-4916 (evenings and weekends)
  49.          
  50.          On CompuServe: user ID No. 72060,2434
  51.          
  52.          If you have an application that you think will work using this
  53.          software and you want to market it and want me to program it,
  54.          please write to me.  I will consider all requests.
  55.          
  56.          
  57.          CompuServe is a registered trademark of CompuServe, Inc.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                              THE FILES YOU SHOULD HAVE.
  71.                                           
  72.          
  73.          MATHX.COM           The main MATH EXTRA program.
  74.          MATHX.ENV           The MATHX environment file.
  75.          MATHX.SET           The MATHX color and parameter setup file.
  76.          MATHX.DFT           The MATHX defaults file.
  77.          MATHX.MEM           The MATHX string memory save file.
  78.          MATHX.VAR           The MATHX variable save file.
  79.          MATHX.DOC           This document file.
  80.          MATHX.BAT           The file used to run MATHX from the base dir.
  81.          MATHX.ICO           The MATHX ICON file for windows 3.0.
  82.          MATHX.PIF           A file used by windows 3.0.
  83.          MATHX.HLP           The MATHX help file.
  84.          MATHXR.COM          The main MATH EXTRA RESIDENT program.
  85.          MATHXR.DFT          The MATHXR defaults file.
  86.          MATHXDEM.APL        The MATHX demo application file.
  87.          MATHXDEM.ENV        The MATHX demo environment file.
  88.          FINANCE.APL         The finance application for MATHX.
  89.          FINANCE.ENV         The finance environment file.
  90.          ONEARM.APL          The one arm bandit game application file.
  91.          ONEARM.ENV          The one arm bandet game environment file.
  92.          FINANCE.APR         The finance application for MATHXR.
  93.          CONVERT.UTL         The over 500 unit conversion utility file.
  94.          GRAPH.UTL           The graph making utility file.
  95.          TRIANGLE.UTL        The right and oblique triangle utility file.
  96.          INSTALL.BAT         Used to install MATHX on your hard drive.
  97.          MX-READ.ME          A quick summary of the MATHX package.
  98.          MXR-READ.ME         A quick summary of the MATHXR package.
  99.          
  100.          
  101.          If you are going to use MATHX from a floppy disk, you can delete
  102.          the MATHX.BAT and INSTALL.BAT files.  To install MATHX on your
  103.          hard drive, run the INSTALL program.  This will put all the MATHX
  104.          files in a directory named MATHX and the MATHXR files and the
  105.          MATHX.BAT file on the base dir.  The format is INSTALL drive:
  106.          Example  INSTALL C:
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                  What did you buy?
  137.          
  138.          If you  bought this  software from  a distribution house, you have
  139.          bought a  disk that  has great  software on  it but  you have  not
  140.          bought the  software yet.   I have no relationship with any of the
  141.          distribution houses  and I  do not get a penny of the fee you paid
  142.          for the  disk containing MATH EXTRA and MATH EXTRA RESIDENT.  Many
  143.          distribution houses  do a poor job of revealing the true nature of
  144.          the shareware system of distributing software.  If you thought you
  145.          purchased this  software free  and clear,  you might  be a  little
  146.          angry with  them for misleading you.  But I hope you will not feel
  147.          that you  have been  cheated out  of anything.   The  distribution
  148.          houses do a good job of distributing software for programmers like
  149.          me who  have spent all their time programming and no time learning
  150.          marketing  and   distribution  techniques.    These  programs  are
  151.          distributed at  almost no  cost to  me and  that is why I can sell
  152.          them for a lot less than "commercial" software.  As a result, this
  153.          is great  for you  the customer,  because you  are  getting  great
  154.          software for  a lot  less and  also good  for me  the  programmer,
  155.          because I don't have to spend a lot of money on distribution.  The
  156.          distribution houses  must charge  something for  the disks because
  157.          they pay for the advertising and do all the work.  I hope you will
  158.          be happy with this form of software promoting and actively support
  159.          it.  This way you will encourage the best programmers in the world
  160.          to keep programming for you, and not for the big corporations.
  161.          
  162.          
  163.          
  164.                                    Why register?
  165.          
  166.          For the most part this is a question you must answer.  If you find
  167.          this software  useful, and  I think  you will,  it is  a matter of
  168.          honesty that you will pay for it.  You are on your honor.  This is
  169.          something  you   must  decide   for  yourself.   Also  many  users
  170.          procrastinate in  registering.  They simply have not got around to
  171.          it yet.  To help you with this process I am giving some incentives
  172.          for registering.   All  registered users  will receive  additional
  173.          utilities sent  with their MATHX registered software.  The printed
  174.          manual  is   available  to   registered  users  only.    The  word
  175.          "UNREGISTERED" will  no longer  be displayed  at the  top  of  the
  176.          program's main  screen and  graphic mode screen.  Also you will be
  177.          on my  mailing list.  You may then get notices about new utilities
  178.          and applications  for MATHX and MATHXR.  (Many are planned.  I now
  179.          have two special purpose applications available as an aid to sheet
  180.          metal stamping  and NC  turret punch programming.)  Also, one free
  181.          update is  available to  registered users  and after that low cost
  182.          updated versions  will be available.  Last but not least, you will
  183.          know that  you have  done the  right thing.   I will know that you
  184.          appreciate the work that I have done and that software distributed
  185.          this way can be beneficial to both you and to me.
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                            O  R  D  E  R      F  O  R  M
  203.          
  204.                                   Denker Software
  205.                                   204 4th Ave. S.
  206.                                    P. O. Box 115
  207.                                  Isanti, Mn. 55040
  208.          
  209.          
  210.          MATH EXTRA RESIDENT, (MATHXR)
  211.          program and manual on disk.
  212.          (includes MATHXR registration) . . . . _____ @ $20.00 ea. $_______
  213.          
  214.          MATH EXTRA, (MATHX)
  215.          program and manual on disk.
  216.          (includes MATHX registration). . . . . _____ @ $30.00 ea. $_______
  217.          
  218.          MATHX & MATHXR
  219.          programs & manual on disk.
  220.          (includes registration for both) . . . _____ @ $40.00 ea. $_______
  221.          
  222.          Printed manual for MATHX & MATHXR
  223.          (registered users only)  . . . . . . . _____ @ $10.00 ea. $_______
  224.          
  225.          Update to latest version. (1 free)
  226.          (registered users only)  . . . . . . . _____ @  $7.00 ea. $_______
  227.          
  228.                                                       Subtotal  $__________
  229.          
  230.                          Minnesota residents add 6.5% sales tax  $_________
  231.          
  232.          If outside the U.S. and Canada, add $5.00 for handling  $_________
  233.          
  234.                                                         Total  $___________
  235.          
  236.          
  237.          Check disk type.      (720K) 3 1/2"_____     (360K) 5 1/4"_____
  238.          
  239.          
  240.          Name __________________________________________________________
  241.          
  242.          Company _______________________________________________________
  243.          
  244.          Address _______________________________________________________
  245.          
  246.          City _______________________________State_______Zip____________
  247.          
  248.                                        or Country_______________________
  249.          
  250.          Phone No. _ _ _ - _ _ _ - _ _ _ _
  251.          
  252.          
  253.                    Sorry, no C.O.D. orders will be accepted.
  254.          
  255.          Orders from outside of the UNITED STATES please send a check drawn
  256.          on a U.S. bank in U.S. dollars.
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.          
  269.          
  270.          
  271.          
  272.          
  273.          
  274.                                   DENKER SOFTWARE
  275.          
  276.          
  277.          
  278.          
  279.          
  280.          
  281.                                  MATH EXTRA (MATHX)
  282.                                     Version 3.00
  283.                             MATH EXTRA RESIDENT (MATHXR)
  284.                                     Version 2.12
  285.          
  286.                                 (Unregistered Copy)
  287.          
  288.                          R E F E R E N C E     M A N U A L
  289.                                           
  290.          
  291.          
  292.          
  293.          
  294.          
  295.          
  296.          
  297.          
  298.          
  299.                            Copyright (c) 1989, 1990, 1991
  300.                                          by
  301.                                     David Denker
  302.                                     P.O. Box 115
  303.                                  Isanti, Mn. 55040
  304.                                  Phone 612-444-4916
  305.                                (Evenings & Weekends)
  306.                                           
  307.                                 All rights reserved.
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                  TABLE OF CONTENTS
  335.          
  336.          LICENSE  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .   1
  337.          
  338.          WARRANTY .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .   2
  339.          
  340.          INTRODUCTION   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .   3
  341.               Hardware requirements .  .  .  .  .  .  .  .  .  .  .  .   3
  342.          
  343.          THE MATH PROGRAMS
  344.               MATHX.COM    .  .  .  .  .  .  .  .  .  .  .  .  .  .  .   4
  345.                    LCD mode   .  .  .  .  .  .  .  .  .  .  .  .  .  .   4
  346.               MATHXR.COM   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .   5
  347.          
  348.          TERMINOLOGY .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 6-7
  349.          
  350.          FUNCTION OF KEYS  .  .  .  .  .  .  .  .  .  .  .  .  .  .   8-10
  351.          
  352.          FUNCTIONS
  353.               Math Functions  .  .  .  .  .  .  .  .  .  .  .  .  .  .  11
  354.               Special Functions and Constants   .  .  .  .  .  .  .  .  12
  355.          
  356.          PRIORITY OF CALCULATIONS   .  .  .  .  .  .  .  .  .  .  .  .  13
  357.          
  358.          ANSWER SYSTEM  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  14
  359.          
  360.          DATA INPUT
  361.               Decimal input   .  .  .  .  .  .  .  .  .  .  .  .  .  .  15
  362.               Hexadecimal input  .  .  .  .  .  .  .  .  .  .  .  .  .  15
  363.               Input to variables .  .  .  .  .  .  .  .  .  .  .  .  .  16
  364.               Input to string memories .  .  .  .  .  .  .  .  .  .  .  16
  365.          
  366.          MANUAL CALCULATIONS  .  .  .  .  .  .  .  .  .  .  .  .  .  .  17
  367.          
  368.          PROGRAMMED CALCULATIONS .  .  .  .  .  .  .  .  .  .  .  .  .  18
  369.               Application files  .  .  .  .  .  .  .  .  .  .  .  .  .  18
  370.                    Utility files .  .  .  .  .  .  .  .  .  .  .  .  .  18
  371.               Defaults files  .  .  .  .  .  .  .  .  .  .  .  .  .  .  19
  372.          
  373.          STATEMENTS  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  20
  374.               AOFF      Comma form off .  .  .  .  .  .  .  .  .  .  .  21
  375.               AON       Comma form on  .  .  .  .  .  .  .  .  .  .  .  21
  376.               BC        Background color  .  .  .  .  .  .  .  .  .  .  21
  377.               BEEP      Beep  .  .  .  .  .  .  .  .  .  .  .  .  .  .  21
  378.               BOFF      Disable Blinking  .  .  .  .  .  .  .  .  .  .  21
  379.               BON       Enable Blinking   .  .  .  .  .  .  .  .  .  .  21
  380.               CALL      Call a sub-routine   .  .  .  .  .  .  .  .  .  21
  381.               CC        Character color   .  .  .  .  .  .  .  .  .  .  22
  382.               CLS       Clear Screen   .  .  .  .  .  .  .  .  .  .  .  22
  383.               COFF      HEX complement off   .  .  .  .  .  .  .  .  .  22
  384.               COL       Cursor to column No. .  .  .  .  .  .  .  .  .  22
  385.               CON       HEX complement on .  .  .  .  .  .  .  .  .  .  22
  386.               DATA      Use DATA per variable   .  .  .  .  .  .  .  .  22
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.          Statements cont.
  401.               DEGM      Degree mode .  .  .  .  .  .  .  .  .  .  .  .  23
  402.               DIGL      Digits left of DP .  .  .  .  .  .  .  .  .  .  23
  403.               DIGR      Digits right of DP   .  .  .  .  .  .  .  .  .  23
  404.               DPRN      Display and Print .  .  .  .  .  .  .  .  .  .  23
  405.               DSP       Display  .  .  .  .  .  .  .  .  .  .  .  .  .  24
  406.               EDITOR    Define editor for EDIT  .  .  .  .  .  .  .  .  24
  407.               EOFF      Scientific notation form []   .  .  .  .  .  .  24
  408.               EON       Scientific notation form E .  .  .  .  .  .  .  24
  409.               EREQ      Scientific notation required  .  .  .  .  .  .  25
  410.               FF        Form Feed to printer .  .  .  .  .  .  .  .  .  25
  411.               FKEY      Define Function keys .  .  .  .  .  .  .  .  .  25
  412.               GOTO      Jump to location No. .  .  .  .  .  .  .  .  .  26
  413.               GRAD      Grads mode  .  .  .  .  .  .  .  .  .  .  .  .  26
  414.               HEAD      Header line .  .  .  .  .  .  .  .  .  .  .  .  26
  415.               HOFF      Header off  .  .  .  .  .  .  .  .  .  .  .  .  26
  416.               IF        IF THEN do  .  .  .  .  .  .  .  .  .  .  .  .  27
  417.               INFO      Get system information  .  .  .  .  .  .  .  .  27
  418.               INPP      Input form I/O port  .  .  .  .  .  .  .  .  .  27
  419.               INPUT     Input from keyboard  .  .  .  .  .  .  .  .  .  28
  420.               INS       Insert mode .  .  .  .  .  .  .  .  .  .  .  .  28
  421.               KYCK      Key input check   .  .  .  .  .  .  .  .  .  .  28
  422.               KOFF      No case check for IF string   .  .  .  .  .  .  28
  423.               KON       Check case of IF string .  .  .  .  .  .  .  .  28
  424.               KYIN      Get key input  .  .  .  .  .  .  .  .  .  .  .  28
  425.               MENU      Menu statement .  .  .  .  .  .  .  .  .  .  .  29
  426.               MENUU     3D Menu statement .  .  .  .  .  .  .  .  .  .  29
  427.               MLIN      Get mouse cursor line No.  .  .  .  .  .  .  .  30
  428.               MLOC      Get mouse cursor location  .  .  .  .  .  .  .  30
  429.               MLVL      Get menu line level  .  .  .  .  .  .  .  .  .  30
  430.               MOFF      Disable mouse operation .  .  .  .  .  .  .  .  30
  431.               MON       Enable mouse operation  .  .  .  .  .  .  .  .  30
  432.               MSET      Set mouse cursor location  .  .  .  .  .  .  .  30
  433.               ON        On expression GOTO or CALL .  .  .  .  .  .  .  31
  434.               OUTP      Output to I/O port   .  .  .  .  .  .  .  .  .  31
  435.               OVER      Over type mode .  .  .  .  .  .  .  .  .  .  .  31
  436.               PARM      Parameter statements .  .  .  .  .  .  .  .  .  31
  437.               POFF      Disable print  .  .  .  .  .  .  .  .  .  .  .  32
  438.               PON       Enable print   .  .  .  .  .  .  .  .  .  .  .  32
  439.               PRN       Print .  .  .  .  .  .  .  .  .  .  .  .  .  .  32
  440.               QOFF      Quiet mode off .  .  .  .  .  .  .  .  .  .  .  32
  441.               QON       Quiet mode  .  .  .  .  .  .  .  .  .  .  .  .  32
  442.               QUIT      Quit execution .  .  .  .  .  .  .  .  .  .  .  32
  443.               RADM      Radian mode .  .  .  .  .  .  .  .  .  .  .  .  32
  444.               RC        Restore colors .  .  .  .  .  .  .  .  .  .  .  32
  445.               RET       Return from a sub-routine  .  .  .  .  .  .  .  33
  446.               ROFF      Disable round off of answer   .  .  .  .  .  .  33
  447.               RON       Enable round off of answer .  .  .  .  .  .  .  33
  448.               ROW       Cursor to row No. .  .  .  .  .  .  .  .  .  .  33
  449.               SAVE      Save instruction line   .  .  .  .  .  .  .  .  33
  450.               SC        Save colors .  .  .  .  .  .  .  .  .  .  .  .  33
  451.               SLOC      Start location for application   .  .  .  .  .  33
  452.               TIME      Get time .  .  .  .  .  .  .  .  .  .  .  .  .  33
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.          Statements cont.
  467.               TITLE     Add title to application   .  .  .  .  .  .  .  34
  468.               TONE      Generate musical notes  .  .  .  .  .  .  .  .  34
  469.               USE       Use keyboard buffer  .  .  .  .  .  .  .  .  .  35
  470.               USES      Use keyboard buffer  .  .  .  .  .  .  .  .  .  35
  471.               VIDM      Get video mode .  .  .  .  .  .  .  .  .  .  .  35
  472.               WAIT      Timed wait  .  .  .  .  .  .  .  .  .  .  .  .  36
  473.               WDSP      Window display data  .  .  .  .  .  .  .  .  .  36
  474.               WIND      Window statement  .  .  .  .  .  .  .  .  .  .  37
  475.               WINDD     3D Window statement  .  .  .  .  .  .  .  .  .  37
  476.               WLCC      Window line color change   .  .  .  .  .  .  .  38
  477.               WOFF      Window off statement .  .  .  .  .  .  .  .  .  38
  478.               XOFF      Disable scientific notation   .  .  .  .  .  .  38
  479.               XON       Enable scientific notation .  .  .  .  .  .  .  38
  480.          
  481.          GRAPHIC MODE STATEMENTS .  .  .  .  .  .  .  .  .  .  .  .  .  39
  482.               GRAF      Graphic display mode enable   .  .  .  .  .  .  39
  483.               ARC       Display arc .  .  .  .  .  .  .  .  .  .  .  .  39
  484.               CIRC      Display circle .  .  .  .  .  .  .  .  .  .  .  40
  485.               DOT       Display dot .  .  .  .  .  .  .  .  .  .  .  .  40
  486.               GMOD      Set graphic video mode  .  .  .  .  .  .  .  .  40
  487.               GOFF      Disable graphics  .  .  .  .  .  .  .  .  .  .  41
  488.               INPUT     Input from keyboard  .  .  .  .  .  .  .  .  .  41
  489.               LINE      Display line   .  .  .  .  .  .  .  .  .  .  .  41
  490.               
  491.          STATEMENT NOTES   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  42
  492.          
  493.          
  494.          COMMANDS .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  43
  495.               DEL       Delete file command  .  .  .  .  .  .  .  .  .  43
  496.               DOS       Exit to DOS command shell  .  .  .  .  .  .  .  43
  497.               EDIT      Edit application file   .  .  .  .  .  .  .  .  43
  498.               GET       Return saved instruction line .  .  .  .  .  .  43
  499.               HELP      Display HELP information   .  .  .  .  .  .  .  44
  500.               LIST      List Function key definitions .  .  .  .  .  .  44
  501.               LOAD      Load an application file   .  .  .  .  .  .  .  44
  502.               LODM      Load string memories .  .  .  .  .  .  .  .  .  44
  503.               LODV      Load variables .  .  .  .  .  .  .  .  .  .  .  44
  504.               RUN       Load and run secondary applications .  .  .  .  45
  505.               SAVE      Save previous instruction line   .  .  .  .  .  45
  506.               SAVM      Save string memories .  .  .  .  .  .  .  .  .  45
  507.               SAVV      Save variables .  .  .  .  .  .  .  .  .  .  .  45
  508.               STAT      Status of parameters .  .  .  .  .  .  .  .  .  45
  509.               @         Run application file .  .  .  .  .  .  .  .  .  45
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.          
  533.          ENVIRONMENT FILE  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  46
  534.               Environment commands & statements:
  535.                    APLI .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  46
  536.                    AWBB .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  46
  537.                    AWBF .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  46
  538.                    CLRL .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  46
  539.                    EHB  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  47
  540.                    EHF  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  47
  541.                    ELCB .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  47
  542.                    ELCF .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  47
  543.                    ENVIR   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  47
  544.                    EVHD .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  47
  545.                    EWB  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  48
  546.                    EWF  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  48
  547.                    EWBB .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  48
  548.                    EWBF .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  48
  549.                    EXIT .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  48
  550.                    FDIR .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  48
  551.                    GETM .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  49
  552.                    GETV .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  49
  553.                    LIST .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  49
  554.                    LOAD$   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  49
  555.                    MWBB .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  49
  556.                    MWBF .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  49
  557.                    NDIR .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  50
  558.                    PLC  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  50
  559.                    RUN$ .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  50
  560.                    SAVS .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  50
  561.                    UWBB .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  50
  562.                    UWBF .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  50
  563.          
  564.          ERROR MESSAGES .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  51-56
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.                                     LICENSE
  599.          
  600.          All versions of MATHX and MATHXR are not public domain software,
  601.          nor are they free software.
  602.          
  603.          Use of non-registered copies of MATHX or MATHXR software by any
  604.          person, business, corporation, governmental agency or other group
  605.          or institution is strictly forbidden.
  606.          
  607.          No user may modify MATHX or MATHXR in any way, including but not
  608.          limited to decompiling, disassembling or otherwise reverse
  609.          engineering these programs.
  610.          
  611.          Registration permits you the right to use one copy of the
  612.          purchased software on a single computer.  You may not rent or
  613.          lease the MATHX or MATHXR software programs, but you may transfer
  614.          registered copies of the software and accompanying written
  615.          materials on a permanent basis provided you do not retain any
  616.          copies and the recipient agrees to the terms of this license.
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.                                           1
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.                                   LIMITED WARRANTY
  665.          
  666.          
  667.          ONLY SOFTWARE PURCHASED DIRECTLY FROM Denker Software IS COVERED
  668.          BY THIS WARRANTY!
  669.          
  670.               Denker Software warrants that the MATHX and MATHXR software
  671.          programs will perform substantially in accordance with the
  672.          accompanying written materials for a period of 90 days from the
  673.          date of receipt.  Any implied warranties on the MATHX and MATHXR
  674.          software programs are limited to 90 days.
  675.               Denker Software's entire liability and your exclusive remedy
  676.          shall be, at Denker Software's option, either (a) return of the
  677.          purchase price or (b) replacement of the software that does not
  678.          meet Denker Software's Limited Warranty and which is returned to
  679.          Denker Software within 90 days from the date of receipt.
  680.               Denker Software makes no other warranty of any kind on the
  681.          MATHX and MATHXR programs or any software used by these programs,
  682.          express or implied, including but not limited to implied
  683.          warranties of merchantability and fitness for a particular
  684.          purpose, with respect to the software and accompanying written
  685.          materials.
  686.               The user is responsible to determine the fitness of this
  687.          software for the users needs.
  688.               Denker Software shall not be liable for any damages, whether
  689.          indirect or direct, whether special or consequential, arising from
  690.          failure of this program to operate in the manner or the
  691.          expectations of the user.
  692.               Denker Software shall not be liable for any damage to data or
  693.          property which may be caused, whether directly or indirectly, by
  694.          the use of these programs.
  695.               Denker Software will in no way be liable to anyone, or any
  696.          group or organization, for any damages, including any lost
  697.          profits, lost savings or other incidental or consequential damages
  698.          arising out of the use or inability to use these programs.
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.                                           2
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.                                     INTRODUCTION
  731.          
  732.          MATH EXTRA  (MATHX) is  a general  purpose programmable scientific
  733.          math computer  program designed  for the  everyday computer  user.
  734.          There are  many math  programs in  circulation today  but not many
  735.          with the power of MATHX at the price of MATHX.  MATHX uses a Basic
  736.          language type  of programming  format and  is easy  to learn  very
  737.          quickly.   But,  MATHX is not written in basic!  MATHX was written
  738.          using assembly  language for  the smallest, fastest code possible.
  739.          Ease of use is its main feature.  For most math uses, just type in
  740.          the problem  and hit  the ENTER  key for  the answer.   MATH EXTRA
  741.          comes in  two configurations,  one of  which  is  the  MATH  EXTRA
  742.          RESIDENT (MATHXR)  program.   As the  name implies,  MATHXR  is  a
  743.          resident form  of MATHX.  MATHXR is a modified ability program due
  744.          to  the  memory  restraints  of  a  resident  program,  but,  once
  745.          installed, you will like the convenience of hitting the CTRL-ALT-M
  746.          keys and  having a  scientific math program come up on the screen.
  747.          MATHXR cannot  do everything the main MATHX program can do, but it
  748.          is an  excellent resident  program.   Then  there  is  MATH  EXTRA
  749.          (MATHX) itself.   It has the ability to load and run any number of
  750.          pre-programmed math  application files,  has a  DOS command shell,
  751.          can load  or save  variables and  string memories  and much  more.
  752.          MATHX has  an outstanding programming statement structure for pop-
  753.          up windows,  the use  of  color,  sound  and  the  mouse  to  make
  754.          applications and  utilities look  their best and very easy to use.
  755.          See the  functions, statements,  and  commands  sections  of  this
  756.          manual for  complete descriptions  of the  tools available  to the
  757.          MATHX user.
  758.          
  759.          
  760.          
  761.                                HARDWARE REQUIREMENTS
  762.          
  763.          MATHX requires a minimum 256K of available RAM to run.  This is in
  764.          addition to  any memory  resident  programs  and  the  memory  the
  765.          operating system  uses.    MATHXR  requires 64K  of available RAM.
  766.          Both programs  require MS-DOS version 2.0 or higher and an IBM PC,
  767.          XT, AT,  or a very close compatible to run.   All will work with a
  768.          Monochrome, LCD or Color monitor.   Note!  The MATHX graphics mode
  769.          does not  support the  Hercules graphic cards.  Also, may not work
  770.          with some  video cards in display modes other then the standard 80
  771.          columns by 25 lines.
  772.          
  773.          
  774.          
  775.          IBM is a registered trademark of International Business Machines
  776.          Corporation.
  777.          
  778.          MS-DOS and Microsoft Windows are registered trademarks of
  779.          Microsoft Corporation.
  780.          
  781.          Hercules is a registered trademark of Hercules Computer
  782.          Technology.
  783.  
  784.  
  785.  
  786.  
  787.                                           3
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.                                  THE MATH PROGRAMS
  797.          
  798.          MATHX.COM
  799.          This is  the MATH  EXTRA program and is the main math program. You
  800.          should have  at least  256K of  available RAM  to  run  the  MATHX
  801.          program with  its application and environment files.  You may need
  802.          more then 256K if you use the edit application command.  MATHX has
  803.          the ability  to load a DEFAULTS file that can set the value of the
  804.          variables and  write the  string memories.  The defaults file must
  805.          be 2K  or less  in length.   It  can also  define the  first eight
  806.          function keys.    MATHX has the ability to load and save in memory
  807.          an application  file up to 64K in length from the instruction line
  808.          or the DEFAULTS file can load it for you.  An application file can
  809.          also be  loaded from  the DOS command line when entering MATHX.  A
  810.          secondary application or utility can be loaded and run at any time
  811.          using the RUN command.  MATHX has the ability to change the colors
  812.          of the  characters and back ground.  You can control the character
  813.          blinking function  too.  If you are using a LCD screen, MATH EXTRA
  814.          has a  LCD mode  switch that  can be  used on  the command line to
  815.          force monochrome  display on the LCD screen.  There is also a tone
  816.          statement that can generate seven octaves of musical notes.  MATHX
  817.          has the  ability to  go to  a DOS command shell from within MATHX.
  818.          Just enter EXIT on the DOS command line when you want to return to
  819.          the MATHX  program.  MATHX has a help file that can be used at any
  820.          time.   To display  the help  information, just  type HELP  on the
  821.          instruction line  and hit  enter or hit the SHIFT-F10 keys and the
  822.          HELP INFORMATION will be displayed.  The help file has most of the
  823.          information you will need but it is still a good idea to print out
  824.          this MATHX.DOC  file.   MATHX also  has the  ability  to  generate
  825.          windows and use the mouse. There is file named MATHX.ENV that MATH
  826.          EXTRA loads  to set  up a  pop-down menu environment.  It does not
  827.          matter if  you use the mouse or the keyboard,  MATHX is as easy to
  828.          use as  it can  get.   Best of all, the applications, the defaults
  829.          file, even  the environment  file can  be programmed or changed by
  830.          the user.   You can even use your favorite editor from within MATH
  831.          EXTRA to  edit the  currently loaded  application file.   See  the
  832.          EDITOR statement.   All  these things  are covered in this manual.
  833.          With the  excellent math  functions and  operating environment  of
  834.          this math  program, you  will find no need for any of those little
  835.          on screen calculator programs that are common today.
  836.          
  837.          
  838.          LCD MODE
  839.          MATHX has  a liquid crystal display mode for lap top computers. To
  840.          put MATHX  in LCD  mode, use  /L on  the  DOS  command  line  when
  841.          entering MATHX.   A space is required before the /L and before any
  842.          application filename.  (Upper or lower case can be used.)
  843.          Examples:
  844.               MATHX /L <enter>
  845.               MATHX filename /L <enter>
  846.               MATHX /L filename <enter>
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.                                           4
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.          
  863.          MATHXR.COM
  864.          This is  the MATH  EXTRA RESIDENT  program and as its name states,
  865.          it is  the resident  form of  the MATH EXTRA program.  MATHXR does
  866.          not  have   all  the   features  of   MATHX  because   of   memory
  867.          considerations.   The MATHXR  program and its application file (if
  868.          loaded) is  designed to  take up  no  more  then  64K  of  memory.
  869.          Because of this, MATHXR can only load an application file from the
  870.          DOS command  line when  installing MATHXR.    The  length  of  the
  871.          application file   is  limited to  30K.   MATHXR does not have the
  872.          ability to  save or load variables or string memories, but it does
  873.          have the ability to load a DEFAULTS file that can set the value of
  874.          the variables  and write  the string  memories.  The defaults file
  875.          must be  1K or less in length.  It can also define the first eight
  876.          function keys.  MATHXR does not have the ability to control colors
  877.          but it  will not  give an  error  message  if  the  color  control
  878.          statements are  used.   (This gives  MATHXR maximum  compatibility
  879.          with MATHX  for its application files.)  Once MATHXR is installed,
  880.          just hit CTRL-ALT-M (hold down the CTRL and ALT keys and hit the M
  881.          key) and  the MATHXR  window   will come  up on  the top half of a
  882.          normal 25  line display,  ready to  use.   Note: The MATHXR window
  883.          will NOT  come up  if the  program you  are in  is using a graphic
  884.          display mode.   This is the case for most resident programs. There
  885.          is an  easy way  you can  exit MATHXR  and have the last answer be
  886.          transferred to  the program  you were  using when  you brought  up
  887.          MATHXR.   Not many other pop-up calculators will do that!  This is
  888.          a great feature for spread sheet and data base programs.  (See the
  889.          USE statement.   The  MATHXR.DFT file  normally sets up the F5 key
  890.          for this  purpose.)  To uninstall the MATHXR program, enter at the
  891.          DOS command  prompt MATHXR  /U and  hit enter.  This is useful for
  892.          installing MATHXR  with a  different application   file.    MATHXR
  893.          should be  installed last  if possible.   You  may not  be able to
  894.          uninstall it  if another resident program uses the same interrupts
  895.          and was  installed after  MATHXR.   Also, you  may not  be able to
  896.          uninstall MATHXR  if you  are using a memory manager to put MATHXR
  897.          in high memory.
  898.          
  899.          HOT KEY:
  900.          The key  combination normally  used to pop up the resident version
  901.          of the  math program  is "CTRL-ALT-M".   This is known as the "hot
  902.          key".   The hot key can be changed from the MATHXR command line by
  903.          using the  parameter /*x,  where x  is the key you want as the hot
  904.          key that will be used with the CTRL-ALT keys.
  905.          (CTRL-ALT-A through CTRL-ALT-Z are allowed.)
  906.          Examples:
  907.               MATHXR filename /*x
  908.               MATHXR /*a filename
  909.               MATHXR /*U
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.                                           5
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.                                     TERMINOLOGY
  929.          
  930.          
  931.          Angular mode:  Angle representation form.  MATHX & MATHXR have
  932.                    three angular modes: Degree, Radian & Grad.
  933.          
  934.          Application file:  An external file that can be loaded for a
  935.                    special math purpose.
  936.          
  937.          Command:  An instruction that displays information, controls
  938.                    memory or the storing or retrieving of a file.
  939.          
  940.          Defaults file:  An external file that is automatically loaded by
  941.                    MATHXR and MATHX for the purpose of presetting
  942.                    the parameters, variables and function keys.
  943.                    Must be named MATHXR.DFT and MATHX.DFT
  944.                    Note:  A defaults file is not required.
  945.          
  946.          <enter>  This is used throughout this manual to indicate hitting
  947.                    the Enter key on the keyboard.
  948.          
  949.          Expression:  A list of math instructions, functions and data for
  950.                    the purpose of getting one answer, setting the
  951.                    value of one variable, or giving value to a statement.
  952.          
  953.          Function:  A special purpose mathematical instruction that does
  954.                    a predetermined operation to a variable or value.
  955.                    See math functions list.
  956.          
  957.          Instruction:  Any symbol or function that does a mathematical
  958.                    operation on a variable or value.
  959.          
  960.          Instruction line:  The main input or instruction area of the
  961.                    MATHX programs.  The instruction line for MATHX is 546
  962.                    characters long.  The MATHXR instruction line is 312
  963.                    characters long.  The instruction line is actually
  964.                    made up of lines of 78 character wrapped around to
  965.                    form one continuous instruction area.
  966.                    Note: The keyboard response to a variable INP statement
  967.                    has an instruction line that is 60 characters long.
  968.                    The instruction line for a string memory INP statement
  969.                    is 60 characters long. (The max. length of the String)
  970.          
  971.          Statement:  An operation for control purposes or for some
  972.                    purpose other then a mathematical operation.
  973.                    Note: The DATA statement is an exception.
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.                                           6
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.          String Memory:  Memory that can be assigned a character string
  995.                    as its contents and is given labels $A through $Z.
  996.                    The character string can be up to 60 characters long.
  997.          
  998.          Variable:  Data memory that can be assigned a value and is
  999.                    given labels A through Z.  The MATHX programs have
  1000.                    104 variables.  Up to three ' marks can be used after
  1001.                    the letter to label the other sets of variables.
  1002.                    examples   A  A'  A''  A'''
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.                                           7
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.                                   FUNCTION OF KEYS
  1061.          
  1062.          
  1063.          ┌───┐      ┌───┐
  1064.          │ 0 │ thru │ 9 │  Used to enter numbers.
  1065.          └───┘      └───┘
  1066.          
  1067.          ┌───┐
  1068.          │ . │ Used to enter decimal point.
  1069.          └───┘
  1070.          
  1071.          ┌───┐      ┌───┐
  1072.          │ [ │ and  │ ] │  Used to enter exponent for exponential form.
  1073.          └───┘      └───┘    example  1.56 [-8]  (same as 1.56*10^-8)
  1074.                              Note: 1.56 E-8 is also acceptable.
  1075.          
  1076.          ┌───┐      ┌───┐
  1077.          │ A │ thru │ Z │  Used to enter instructions.
  1078.          └───┘      └───┘  Used to specify variables
  1079.          
  1080.          ┌───┐
  1081.          │ - │  Used to enter negative sign for numbers.
  1082.          └───┘  Used for subtraction instructions.   Example  -12-144
  1083.          
  1084.          ┌───┐
  1085.          │ + │  Used to enter positive sign for numbers. (not required)
  1086.          └───┘  Used for addition instructions.   Example  33+148
  1087.          
  1088.          ┌───┐
  1089.          │ * │  Used for multiplication instructions.   Example  44*123
  1090.          └───┘
  1091.          
  1092.          ┌───┐
  1093.          │ / │  Used for division instructions.  (Or the ÷ character)
  1094.          └───┘  "divide by"    Example  45/25.4
  1095.          
  1096.          ┌───┐
  1097.          │ \ │  Used for exchange before division instructions.
  1098.          └───┘  "divide into"    Note:  100\1 is the same as 1/100
  1099.          
  1100.          ┌───┐
  1101.          │ ^ │  Used for power calculation instructions.
  1102.          └───┘
  1103.          
  1104.          ┌───┐
  1105.          │ = │  Used to assign content or value.  example  X=125
  1106.          └───┘  Used for "equals" in IF statement.  example  IF 5=Z}10
  1107.          
  1108.          ┌───┐
  1109.          │ < │  Used for "less then" in IF statement.
  1110.          └───┘    example  IF SIN A < .5 } 5
  1111.          
  1112.          ┌───┐
  1113.          │ > │  Used for "greater then" in IF statement.
  1114.          └───┘    example  IF A>B}3
  1115.  
  1116.  
  1117.                                           8
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.          ┌───┐     ┌───┐
  1127.          │ ( │ and │ ) │  Used to input parentheses.
  1128.          └───┘     └───┘    example SIN(A+B)
  1129.          
  1130.          ┌───┐
  1131.          │ : │  Used to divide two or more expressions and/or statements.
  1132.          └───┘    If used at the end of the instruction line, no answer
  1133.                    will be displayed.
  1134.          
  1135.          ┌───┐
  1136.          │ , │  Used to separate expressions in DATA statements.
  1137.          └───┘  Used in place of : (same as :) See above.
  1138.          
  1139.          ┌───┐
  1140.          │ # │  Used to indicate a GOTO or CALL location.  Format: #number
  1141.          └───┘    example  :#5:    Locations need not be in order.
  1142.          
  1143.          ┌───┐
  1144.          │ " │  Used to indicate a character string or message by some
  1145.          └───┘    statements.
  1146.          
  1147.          ┌───┐
  1148.          │ ; │  Used to indicate a character string or message by some
  1149.          └───┘    statements.
  1150.          
  1151.          ┌───┐
  1152.          │ | │  Used to indicate a program information comment only.
  1153.          └───┘    example  |This is a comment| (not displayed or printed)
  1154.          
  1155.          ┌───┐     ┌───┐
  1156.          │ { │ and │ } │ Used to identify the data area in DATA statement.
  1157.          └───┘     └───┘    example  DATA X {0,10,20,30,40,50}
  1158.                          Also used in the ON statement.
  1159.          
  1160.          ┌───┐
  1161.          │ } │  Used to symbolize "then" in an IF statement.
  1162.          └───┘    example  IF X=9 }2  (IF X=9 THEN 2: is not allowed)
  1163.          
  1164.          ┌───┐
  1165.          │ ` │  Used when entering Hex numbers.  example `AB9F`*16
  1166.          └───┘
  1167.          
  1168.          ┌───┐
  1169.          │ ' │  Used for alternate variables.  example  X*X'+X''-X'''
  1170.          └───┘
  1171.          
  1172.          ┌───┐
  1173.          │ $ │  Used to indicate string memory.  Format:  $letter or $(x)
  1174.          └───┘          example  $A = "Yes": $B = INPUT
  1175.                         example  $(1)=$A+$(x+1)
  1176.          
  1177.          ┌────┐    ┌────┐
  1178.          │ F1 │ to │ F8 │  User definable keys using FKEY statement.
  1179.          └────┘    └────┘  The F1 key will display help information if
  1180.                              available for an INPUT statement.
  1181.  
  1182.  
  1183.                                           9
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.          ┌────┐
  1193.          │ F9 │  Used to enter the last displayed (decimal) answer into
  1194.          └────┘   the math expression.
  1195.          
  1196.          ┌─────┐
  1197.          │ F10 │  Used to redo the last instruction line entered.
  1198.          └─────┘  REDO ENTRY will appear on the bottom information bar.
  1199.          
  1200.          ┌───────┐┌───────┐
  1201.          │ SHIFT ├┤ F1-F8 │  Used to pop-down menus of the MATHX program.
  1202.          └───────┘└───────┘  (This can also be done using the mouse or the
  1203.                               ALT key and the pop-down menu pick letter)
  1204.          
  1205.          ┌───────┐┌─────┐
  1206.          │ SHIFT ├┤ F10 │ Display HELP INFORMATION.  (MATHX program)
  1207.          └───────┘└─────┘ Display HELP for INP statement if available.
  1208.                           (Not valid in a KYIN statement response)
  1209.                           (Not valid when using an application file)
  1210.          
  1211.          ┌─────┐
  1212.          │ ESC │  Used to exit the math programs.
  1213.          └─────┘  End INP statement response with no change to contents.
  1214.          
  1215.          ┌───────┐
  1216.          │ ENTER │  Used to execute the instruction line.
  1217.          └───────┘  Used to execute input data required by INP statement.
  1218.                     Can be used to separate statements, commands, and
  1219.                     expressions in application and defaults files.
  1220.          
  1221.          ┌──────┐┌───┐
  1222.          │ CTRL ├┤ X │  Used to erase the whole instruction line.
  1223.          └──────┘└───┘   (To start over)
  1224.          
  1225.          ┌───┐
  1226.          │ @ │  Used to execute an application file.  See COMMANDS.
  1227.          └───┘    Format  @<enter>
  1228.          
  1229.          
  1230.                           FUNCTION OF EDIT AND CURSOR KEYS
  1231.          
  1232.          INSERT    Toggles between INSERT and OVERTYPE edit modes.
  1233.          DELETE    Delete character the cursor is on.
  1234.          HOME      Move cursor to home position of the instruction line.
  1235.          END       Move cursor to the end of the instruction line.
  1236.          <--       "Back Space"  Delete character left of the cursor.
  1237.          
  1238.              The four cursor direction keys move the cursor within the
  1239.          instruction line.   For the MATHX program, the mouse may also be
  1240.          used to move the cursor to any character position within the line.
  1241.          
  1242.          NOTE: The "Page Up" and the "Page Down" keys are reassigned
  1243.          the following during instruction line input and input statement
  1244.          response.  (A convenience for users of the 101+ key keyboards)
  1245.                                  "Page Up" enters ^
  1246.                                  "Page Down" enters √
  1247.  
  1248.  
  1249.                                          10
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.          MATH FUNCTIONS:
  1259.          
  1260.          SIN      Trigonometric function Sine.
  1261.          
  1262.          COS      Trigonometric function Cosine.
  1263.          
  1264.          TAN      Trigonometric function Tangent.   (See note below)
  1265.          
  1266.          ASN      Inverse trigonometric function Arcsine.
  1267.          
  1268.          ACS      Inverse trigonometric function Arccosine.
  1269.          
  1270.          ATN      Inverse trigonometric function Arctangent.
  1271.          
  1272.          SINH     Hyperbolic Sine function.
  1273.          
  1274.          COSH     Hyperbolic Cosine function.
  1275.          
  1276.          TANH     Hyperbolic Tangent function.
  1277.          
  1278.          ASNH     Inverse Hyperbolic Sine function.
  1279.          
  1280.          ACSH     Inverse Hyperbolic Cosine function.
  1281.          
  1282.          ATNH     Inverse Hyperbolic Tangent function.
  1283.          
  1284.          ABS      Absolute value.
  1285.          
  1286.          DEG      Degree.minute second to decimal conversion.
  1287.          
  1288.          DMS      Decimal to degree.minute second conversion.
  1289.          
  1290.          EXP      Exponential function of e.
  1291.          
  1292.          LN       Natural logarithm. (base e)
  1293.          
  1294.          LOG      Common logarithm. (base 10)
  1295.          
  1296.          CINT     Integer. (by rounding the fractional portion)
  1297.          
  1298.          FIX      Integer. (truncated integer)
  1299.          
  1300.          INT      Integer. (next lower integer)
  1301.          
  1302.          SGN      Signum.
  1303.          
  1304.          SQR      Extraction of square root.
  1305.          
  1306.          √        Same a SQR
  1307.          
  1308.          Note TAN function:
  1309.               Even though the TAN of 90 and 180 degrees is infinite, it
  1310.               will be entered and displayed as 1 E+200.
  1311.  
  1312.  
  1313.  
  1314.  
  1315.                                          11
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.          SPECIAL FUNCTIONS:
  1325.          
  1326.          F$A to F$Z    Special definable functions using the string
  1327.                        memories.  (The string memory defines the function)
  1328.                           Format:  F$letter expression
  1329.                               or:  F$(expression) expression
  1330.                           Example 1:  $Z="2*Z^2+4*Z-16":F$Z 5
  1331.                        Wherever Z is in the definition of $Z, the value 5
  1332.                        will be put in its place to obtain the result of
  1333.                        F$Z for 5.  F$(26) 5 is the same as F$Z 5.
  1334.                          Note: variable Z is not required in the
  1335.                        definition and if not used, 5 is a dummy value.
  1336.                        A dummy value would be required but is not used.
  1337.                          Example 2: $x="x^2+x+1":$Y="y^3+y^2+y+1":F$X F$Y6
  1338.                        Here two function are defined and the result
  1339.                        of the F$X function of F$Y for 6 will be displayed.
  1340.                        F$Y 6 is done first and its value is used for F$X.
  1341.                          NOTE!  When the variable used in the definition
  1342.                        of a function is the same as the defining string
  1343.                        letter, or expression that equals the string letter
  1344.                        that variable is temporarily given the
  1345.                        value of the function expression.  The old value of
  1346.                        that variable is saved.  No other variables are
  1347.                        modified and can be used in the definition if
  1348.                        needed.
  1349.          
  1350.          RAND     Generate a random whole number from 0 to 99.  Does not
  1351.                    need any other information or "seed".  Wherever RAND
  1352.                    is encountered, a random number is used in its place.
  1353.                         Example  RAND*100+RAND
  1354.          
  1355.          
  1356.          
  1357.          CONSTANT:
  1358.          
  1359.          PI       Enters Pi
  1360.          
  1361.          π        Same as PI
  1362.          
  1363.          
  1364.               NOTE:  All two or three letter functions and constants must
  1365.          have a space between the function and a variable or another
  1366.          function.  (F$ not included)
  1367.               Example  LOG X*LN Y+SIN DEG25.3030-√2
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.                                          12
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.                               PRIORITY OF CALCULATIONS
  1391.          
  1392.          
  1393.          The MATHX programs performs calculations from the left to the
  1394.          right with some exceptions.
  1395.          
  1396.          Functions have priority over power.
  1397.          
  1398.          Power has priority over multiplication or division.
  1399.          
  1400.          Multiplication or division has priority over addition or
  1401.          subtraction.
  1402.          
  1403.          Calculations in parentheses will occur first.  For multiple
  1404.          parentheses, calculations in the innermost parentheses have
  1405.          priority over all others.
  1406.          
  1407.          Compound functions are calculated from right to left.
  1408.               example (LOG SIN DEG 12.3456)
  1409.          
  1410.          A string of powers are calculated from right to left.
  1411.               example (x^y^2)
  1412.          
  1413.          
  1414.          Example of order of calculations:
  1415.          
  1416.                      1.2 + PI * SQR 2 - LN TAN (10+25) ^ 2 / SQR 5
  1417.                       │    │    │   │   │   │   │   │    │   │   │
  1418.                       │    │    └ 1 ┘   │   │   └ 4 ┘    │   │   │
  1419.                       │    └── 2 ─┘     │   └─ 5 ─┘      │   │   │
  1420.                       └── 3 ───┘        └── 6 ─┘         │   └ 8 ┘
  1421.                           │                 └───── 7 ────┘     │
  1422.                           │                        └──── 9 ────┘
  1423.                           └──────────── 10 ──────────────┘
  1424.                                           
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.                                          13
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.                                    ANSWER SYSTEM
  1457.          
  1458.          The  MATHX  programs can display answers to problems or values of
  1459.          variables in two forms: Normal decimal form and Hexadecimal form.
  1460.          
  1461.          
  1462.          
  1463.          DECIMAL FORM:
  1464.          
  1465.          The MATHX  programs use 16 digit binary coded decimal math for all
  1466.          calculations.   The maximum number of digits that can be displayed
  1467.          is 14.   The answer is rounded off to the 14th place.  This can be
  1468.          changed to a smaller number through the use of control statements.
  1469.          The following  statements  change  the  way  the  answer  will  be
  1470.          displayed:   DIGL,   DIGR,  EON, EOFF, AON, AOFF, RON, ROFF, EREQ,
  1471.          XOFF and  XON.  See the STATEMENTS section for descriptions on the
  1472.          use of  these statements.  These statements will change the number
  1473.          of digits  on the  left side of the decimal point that is allowed,
  1474.          the number  of digits on the right side of the decimal  point that
  1475.          is allowed,  whether scientific  notation is allowed or not and if
  1476.          the display  will use commas or not.  Usually if the answer cannot
  1477.          be displayed  in the  form allowed,  scientific notation  will  be
  1478.          used.   If scientific  notation is not allowed then a DISPLAY FORM
  1479.          ERROR will result.  For normal math use, the default settings will
  1480.          be good,  but, for  some special  purpose application programs you
  1481.          may want to tailor your answer display form.
  1482.          
  1483.          
  1484.          
  1485.          HEXADECIMAL FORM:
  1486.          
  1487.          The second  display form is the Hexadecimal format.  This can only
  1488.          be done  using the DSP, PRN, or the DPRN statements and the H sub-
  1489.          statement.   Example:    1000*256:DSP  H.   This special statement
  1490.          displays the  answer  to  the  math  expression  previous  to  the
  1491.          statement in  Hex form.   The answer for the previous example will
  1492.          be displayed  as 0003E800  (HEX).   There are  two statements that
  1493.          control the HEX display.  They are CON and COFF.  They control the
  1494.          way negative  Hex answers  will be  handled.   See the  STATEMENTS
  1495.          section for descriptions on the use of these statements.
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.                                          14
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.                                      DATA INPUT
  1523.          
  1524.          Numbers can  be entered  into the  program in two forms.  Like the
  1525.          answer display  system, numbers  can  be  entered  in  decimal  or
  1526.          hexadecimal form.
  1527.          
  1528.          
  1529.          
  1530.          DECIMAL INPUT:
  1531.          
  1532.          The sign  of the number is entered first.  Use the + or - keys for
  1533.          this.   (For plus  values the  + sign  is can be omitted.)  Normal
  1534.          input or  scientific notation  can be  used.   The exponent    for
  1535.          scientific notation can be entered in two ways.  Brackets with the
  1536.          sign of  the exponent  in the  brackets before  the  number  or  a
  1537.          capital E before the exponent.  Example   1.23 [-9]  or  1.23 E-9.
  1538.          The largest   exponent  that is allowed on entry is [+99] or [-99]
  1539.          but answers  will be  displayed up  to [+200] or [-200].  Up to 16
  1540.          digits are  allowed on entry not counting leading zeros.  Here are
  1541.          some examples of allowed decimal inputs.
  1542.          
  1543.                +12345678901234
  1544.                -12345.6789
  1545.               .000000000012345678901234  same as 1.2345678901234 E-11
  1546.               1.23456 E-12               same as 1.23456*10^-12
  1547.               .000123456 E25             same as 1.23456 [+21]
  1548.               123456 [20]                same as 1.23456 [+25]
  1549.                -1234567890000000         same as -1.23456789 E+15
  1550.          
  1551.          Note:   If you are entering a negative number (or a + sign that is
  1552.          not for  addition) at  the beginning  of a  new instruction  line,
  1553.          first hit  the space  bar so that the program doesn't bring up the
  1554.          previous answer first.  See the MANUAL CALCULATIONS section.
  1555.          
  1556.          
  1557.          
  1558.          
  1559.          HEXADECIMAL INPUT:
  1560.          
  1561.          The   `   character is  used at the start and end of a hexadecimal
  1562.          number to  be input.   A  minus sign can be entered before the hex
  1563.          number to  input a negative value.  The hex number is converted to
  1564.          decimal by the MATHX programs for all math  operations.  Here  are
  1565.          some examples of hexadecimal inputs.
  1566.          
  1567.               `af301`
  1568.               `ffffffff`    (this is the largest hex number allowed)
  1569.               `-0012fac9`
  1570.               `+0100000f`
  1571.               `-fe000`
  1572.               `00abcdef12`
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.                                          15
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.          INPUT TO VARIABLES:
  1589.          
  1590.          Direct input to variables is done using the = character.  The
  1591.          format for this is variable=expression.  Only the result of the
  1592.          expression is saved.
  1593.            Examples:
  1594.               A=1.23456
  1595.               B=12*156
  1596.               C=sin15
  1597.               d=sqr2*a:e=159
  1598.               f=`af3b`
  1599.               g'=x^2+y-1
  1600.               a''=a*g'
  1601.          
  1602.          
  1603.          
  1604.          
  1605.          INPUT TO STRING MEMORIES:
  1606.          
  1607.          Direct input to string memories is done the same as variables with
  1608.          one added requirement.  The string must be put between " or ;
  1609.          characters.  (60 characters maximum.)
  1610.            Formats:  $letter="string"       or  $(expression)="string"
  1611.                 or:  $letter=;string;       or  $(expression)=;string;
  1612.                 or:  $letter=$letter        or  $(expression)=$letter
  1613.                 or:  $letter=$(expression)  or  $(expression)=$(expression)
  1614.                         expression value 0 or 1 = $A, value > 25 = $Z
  1615.               Note:  Any of the string formats can be added together to
  1616.                      form a new string.  (See $I example below)
  1617.                      Only the first 60 characters will be used.  No error
  1618.                      message will be given if the strings add up to more
  1619.                      then 60 characters.
  1620.          
  1621.            Examples:
  1622.               $A="Degrees "
  1623.               $B=;End of program.;
  1624.               $c="c^2+c-1"
  1625.               $d=;enter "Y" for YES or "N" for NO.;
  1626.               $e="yes":$f="no"
  1627.               $g=$(12)                 (same as $G=$L)
  1628.               $h=""                    (Clears the string memory)
  1629.               $I=$a+$b+$(5)+" end."
  1630.               $(24)="string x"
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.                                          16
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.                                 MANUAL CALCULATIONS
  1655.          
  1656.          There are two general types of manual calculation methods that can
  1657.          be used  with the  MATHX programs.   The  first is  the subsequent
  1658.          calculations method.   In  this method, the ENTER key is hit every
  1659.          time you put in an operation and a number or variable.  The answer
  1660.          will be  displayed at each step of the way.  What happens is every
  1661.          time one of the operation characters  +  -  /  \  *  ^  is entered
  1662.          at the  start of  the instruction  line, the program brings up the
  1663.          answer to the previous math expression and puts it in front of the
  1664.          operation.   If the instruction line is started with any character
  1665.          other then  the five  operation characters  given above, or if the
  1666.          ENTER key  is hit  twice in  a row,  the math  expression will  be
  1667.          treated as a new math problem.
  1668.          
  1669.          Example:  For the expression  125.12 + 12.23 - 159.56 + 6.12 + 45
  1670.          
  1671.          First input:
  1672.               125.12+12.23<enter>
  1673.          Answer returned:
  1674.                         137.35
  1675.          Then input:
  1676.               -159.56<enter>    (will be displayed as: 137.35-159.56 )
  1677.          Answer returned:
  1678.                         -22.21
  1679.          Then input:
  1680.               +6.12<enter>      (will be displayed as: -22.21+6.12 )
  1681.          Answer returned:
  1682.                         -16.09
  1683.          Then input:
  1684.               +45<enter>        (will be displayed as: -16.09+45 )
  1685.          Answer returned:
  1686.                         28.91
  1687.          
  1688.          
  1689.          The  second  way of entering a math problem is to enter the whole
  1690.          math expression at one time and get one answer.
  1691.          Same example as above:
  1692.          
  1693.          Input:
  1694.               125.12+12.23-159.56+6.12+45<enter>
  1695.          Answer returned:
  1696.                         28.91
  1697.          
  1698.          
  1699.          Note: If you are starting a math expression with a negative
  1700.          number, hit the space bar first or the <enter> key again so the
  1701.          program will not treat it as a subtraction operation.
  1702.          
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.                                          17
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.                               PROGRAMMED CALCULATIONS
  1721.          
  1722.          APPLICATION FILES:
  1723.          
  1724.          MATHX and MATHXR have the ability to load and run math application
  1725.          files that  can to do calculations too complex or too long for the
  1726.          normal instruction  line entry.     MATHXR can load an application
  1727.          file of 30K in length or less only at the time of its installation
  1728.          and only  from the DOS command prompt.  MATHXR should be installed
  1729.          last if  possible.    MATHXR  can then  be uninstalled  using  the
  1730.          MATHXR /U  command if  you should find it necessary or if you want
  1731.          to install  it with  a different math application file.  MATHX can
  1732.          load an  application file  of 64K  in length  or less from the DOS
  1733.          command prompt  or by  using the  LOAD command  from within MATHX.
  1734.          See the  LOAD statement.   MATHX can also load an application file
  1735.          using the  DEFAULTS file.   If  the  MATHX.DFT  file  has  a  LOAD
  1736.          statement in  it, that  file will be loaded automatically.  If the
  1737.          DEFAULTS file  has a  load statement  and an  application file  is
  1738.          given at  the DOS  command line,  the file  given the command line
  1739.          will be  loaded last.   The  math and statement format used in the
  1740.          application files  is the  same as  in the instruction line except
  1741.          that carriage  returns (ENTER  key) can  be used  to separate math
  1742.          expressions, statements,  and commands in the program.  This makes
  1743.          for a  nice line  structure that  is easy  to follow.  The GOTO or
  1744.          CALL locations  can be placed at any location in the line or lines
  1745.          and  do not  have to be at the beginning.  Also, there can be more
  1746.          then one  location in a line.  The location numbers do not have to
  1747.          be in  order.  All the statements listed in the STATEMENTS section
  1748.          except the SAVE statement can be used in the application programs.
  1749.          The FKEY  statements must  however have its own line. In this case
  1750.          the carriage  return (ENTER  key) will  end the  definition of the
  1751.          function key.   Some  commands cannot  be used  in the application
  1752.          file.   See the  COMMANDS section.   For  MATHX, the variables and
  1753.          string memories  can be loaded or saved.  Any word file editor can
  1754.          be used  to generate  or edit a math application program. Here are
  1755.          some examples  of loading an application file from the DOS command
  1756.          line prompt.   The  path must be given for the application file if
  1757.          it is  not in  the current directory.  The name of the application
  1758.          file loaded  will be  displayed at  the  right  side  of  the  top
  1759.          information bar.
  1760.            C>MATHX MATHXDEM.APL <enter>
  1761.            C>MATHX MATHXDEM.APL /L <enter>   (for LCD screen mode)
  1762.            C>MATHXR INTEREST.APR <enter>     (installation)
  1763.               NOTE!  Not all applications will work with MATHXR.  Because
  1764.                      of memory considerations, many of the more memory
  1765.                      hungry statements are not supported by MATHXR.
  1766.          
  1767.          
  1768.          UTILITY FILES:
  1769.          
  1770.          MATHX has  the ability  to load  and run  a utility  file from the
  1771.          utility pop-down menu.  A utility file is an application file with
  1772.          the file  extension ".UTL".   It is treated as an application file
  1773.          by this manual.
  1774.  
  1775.  
  1776.  
  1777.                                          18
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.          DEFAULTS FILE:
  1787.          
  1788.          MATHX and  MATHXR have  the ability to load and execute a defaults
  1789.          file at  the time  the program  is run.   The defaults file is not
  1790.          required though.   The  purpose of  the defaults file is to define
  1791.          the function  keys  that  you  may  want  defined  or  preset  any
  1792.          variables or  string memories.   It  is used  only once  when  the
  1793.          program is first run and then not used any more.  For MATHX it can
  1794.          also be  used to  load the  variables from a file, load the string
  1795.          memories from  a file,  and load  an application  file.   Like the
  1796.          application file,  the defaults  file uses the same math format as
  1797.          the instruction  line except  carriage  returns  can  be  used  to
  1798.          separate math  expressions,   statements, and  commands.  Any word
  1799.          processor or  editor that does not leave in control characters can
  1800.          be used  to generate  the   defaults file. Note: The defaults file
  1801.          for MATHX  is MATHX.DFT  and must  be 2K  or less  in length.  The
  1802.          defaults file  for MATHXR  is MATHXR.DFT and must be 1K or less in
  1803.          length.   The programs  look for  these  files  by  name  and  the
  1804.          defaults files cannot be loaded by using the DOS command line.
  1805.          
  1806.          
  1807.          Example of a MATHX.DFT file.
  1808.          
  1809.          fkey1=HELP«
  1810.          fkey2=~@«
  1811.          fkey3=SAVE«
  1812.          fkey4=GET«
  1813.          fkey5=~DOS«
  1814.          fkey6=~CLS«
  1815.          fkey7=~EDIT«
  1816.          lodv
  1817.          lodm
  1818.          c=25.4:e=exp1
  1819.          envir
  1820.          
  1821.          
  1822.          
  1823.          Example of a MATHXR.DFT file.
  1824.          
  1825.          fkey2=~@«
  1826.          fkey3=SAVE«
  1827.          fkey4=GET«
  1828.          fkey5=~USE A«
  1829.          fkey6=~CLS«
  1830.          flay7=~STAT«
  1831.          c=25.4:e=exp1
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.                                          19
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.                                      STATEMENTS
  1853.          
  1854.          Statements are used for control or parameter setup purposes or for
  1855.          some other  purpose other then a mathematical operation.  The DATA
  1856.          statement is  an exception.   The  normal MATH EXTRA user will not
  1857.          need to  use any  statements at all.  All normal parameter changes
  1858.          can be  done from  the environment pop-down menus.  If you program
  1859.          your own  applications or  utilities, you  will need  to know this
  1860.          information.   Statements must  be separated from other statements
  1861.          or math  expressions by  either a  colon or  a comma. Some special
  1862.          statements require  a carriage  return (<enter>  key) to close the
  1863.          statement.   Many statements require other data to be entered with
  1864.          the statement.     For those statements, the format and an example
  1865.          will be  given  in  the  information  about  the  statement.  Some
  1866.          statements will  only accept data up to a given value.  If data is
  1867.          given to  those statements  higher than  the  maximum  value,  the
  1868.          statement will  be given  only its  maximum value.  Also, no error
  1869.          message will  be given.   If a statement is in the wrong format or
  1870.          given the  wrong parameters,   a  SYNTAX ERROR will result and the
  1871.          instruction line will be returned with the cursor on or just after
  1872.          the problem  statement or  parameter.  If the error is found in an
  1873.          application or  defaults file,  a SYNTAX ERROR will result and the
  1874.          next 50  characters of  the file  from the  point of error will be
  1875.          displayed. Statements  can be  entered using either upper or lower
  1876.          case letters  and  any  spaces  between  statements  and  data  or
  1877.          parameters will  be  ignored.    Spaces  should  not  be  used  in
  1878.          statements that  define a DOS path and program name though.  Note:
  1879.          All two  or three  letter statements  require a  space between the
  1880.          statement and  any variable  or letter  in its  parameters or sub-
  1881.          statements.
  1882.          
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.                                          20
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.          STATEMENTS:
  1919.          
  1920.          
  1921.          AOFF     Set commA display form OFF.  (1234567.12345)
  1922.          
  1923.          
  1924.          AON      Set commA display form ON.  (1,234,567.12345)
  1925.          
  1926.          
  1927.          BC       Set background color.  (Color systems only)
  1928.                    (MATHXR will ignore this statement)
  1929.                               Format:  BC number
  1930.                                   or:  BC(expression)  See note 2.
  1931.                               Example  BC1
  1932.                    Color value chart:
  1933.                          0 = black         4 = red
  1934.                          1 = blue          5 = magenta
  1935.                          2 = green         6 = brown
  1936.                          3 = cyan          7 = white
  1937.                      (See BON and BOFF statements)
  1938.                          8 = gray         or black with character blinking
  1939.                          9 = light blue    or blue    "      "        "
  1940.                         10 = light green   or green   "      "        "
  1941.                         11 = light cyan    or cyan    "      "        "
  1942.                         12 = light red     or red     "      "        "
  1943.                         13 = light magenta or magenta "      "        "
  1944.                         14 = yellow        or brown   "      "        "
  1945.                         15 = bright white  or white   "      "        "
  1946.          
  1947.          
  1948.          BEEP     BEEP once.
  1949.          
  1950.          
  1951.          BOFF     Disable character blinking.  (See BC statement)
  1952.                    (Color systems only)
  1953.                    (MATHXR will ignore this statement)
  1954.          
  1955.          
  1956.          BON      Enable character blinking.  (See BC statement)
  1957.                    (Color systems only)
  1958.                    (MATHXR will ignore this statement)
  1959.          
  1960.          
  1961.          CALL     CALL sub-routine statement.  The sub-routine should
  1962.                    end with a RETurn statement.  See RET statement.
  1963.                           Formats:  CALL number   or:  GOSUB number
  1964.                                                   or:  GOS number
  1965.                              number can = 0 to 25 for instruction line or
  1966.                              MATHXR.DFT and MATHX.DFT (defaults) files.
  1967.                              number can = 0 to 999 for application files.
  1968.                                0 = start of instruction line or file.
  1969.                              The location format is:   #number
  1970.                         Example  CALL 2:quit:#2:dsp"Call test.":ret
  1971.                    Note:  Quitting from a sub-routine is allowed.
  1972.                           If in a continuous loop, hit the ALT-Q keys.
  1973.  
  1974.  
  1975.                                          21
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.          CC or FC  Set character (foreground) color.  (Color systems only)
  1985.                    (MATHXR will ignore this statement)
  1986.                               Formats:  CC number   or:  FC number
  1987.                                    or:  CC(expression)
  1988.                                    or:  FC(expression)  See note 2.
  1989.                               Example  CC15:dsp "HELP":CC(c)
  1990.                    Color value chart:
  1991.                         0 = black          8 = gray
  1992.                         1 = blue           9 = light blue
  1993.                         2 = green         10 = light green
  1994.                         3 = cyan          11 = light cyan
  1995.                         4 = red           12 = light red
  1996.                         5 = magenta       13 = light magenta
  1997.                         6 = brown         14 = yellow
  1998.                         7 = white         15 = bright white
  1999.          
  2000.          
  2001.          CLS      CLear Screen. (Puts the cursor at the top of the screen)
  2002.                    Also will turn off any pop-up window on the display.
  2003.                    The screen will be cleared using the background color or
  2004.                    in the graphic mode the screen will be cleared black.
  2005.          
  2006.          
  2007.          COFF     Set Hex answer to negative mode. (Complement OFF)
  2008.                    If negative, display as negative.
  2009.          
  2010.          
  2011.          COL      Put the cursor at COLumn number.  (For application use)
  2012.                          Format:  COL number
  2013.                              or:  COL (expression)  See note 2.
  2014.                          Example  COL45:dsp ;test;:COL(x+2):dsp;end;
  2015.          
  2016.          
  2017.          CON      Set Hex answer to Complement mode.  If negative, display
  2018.                   as complement.  Hex -1AF0 is displayed as FFFFE510 (HEX)
  2019.          
  2020.          
  2021.          DATA     Data statement using a variable to pick out data from a
  2022.                    list of expressions.  A DATA statement can be placed
  2023.                    inside another DATA statement.  Also the DATA statement
  2024.                    is the only statement that can be part of a math
  2025.                    expression.  (But not an "INP" math response.)
  2026.                      Format:  DATA variable {data0,data1,data2,data3,etc.}
  2027.                      Example  Y*DATA X {1.25,Z,SIN15*Z+Z',SQR2,PI}-1
  2028.                  Note:  The expression used from the DATA statement is
  2029.                   treated as if it were between parentheses.  If X=2 in
  2030.                   the example above, the result would be Y*(SIN15*Z+Z')-1.
  2031.                  Note:  Variable=Expression is not allowed in the data
  2032.                   area.
  2033.          
  2034.          
  2035.          DEGM     Set angular designation to DEGree Mode.
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.                                          22
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.          DIGL     Set the number of DIGits Left of the decimal point that
  2051.                    will be allowed in the answer.
  2052.                         Format:  DIGL number
  2053.                              number can = 0 to 14 (decimal)
  2054.                         Example  DIGL6
  2055.          
  2056.          
  2057.          DIGR     Set the number of DIGits Right of the decimal point that
  2058.                    will be allowed in the answer.
  2059.                       Format:  DIGR number
  2060.                              number can = 0 to 13 (decimal)
  2061.                    Note: Does not apply to exponential form. The number
  2062.                       of digits in exponential form may equal DIGL + DIGR.
  2063.          
  2064.          
  2065.          DPRN     Display and PRiNt statement:  Used to send the answer,
  2066.                    answer in hex form, carriage return and line feed, or
  2067.                    other data to the display and printer. (if enabled)
  2068.                         Format:  DPRN sub-statements
  2069.                    Sub-statements:  (none, any or all may be used)
  2070.                     A =Answer of previous math expression before DPRN.
  2071.                     D =Character (dec.), formats: Dnumber or D(expression)
  2072.                     F =send a Form feed to printer.
  2073.                     H =answer of previous expression in Hex form.
  2074.                     N =next line (CR & LF to the display and printer).
  2075.                     O =send CR only to the display and printer.
  2076.                     S =Spaces,  formats: Snumber or S(expression)
  2077.                     U =using answer format.  Format:  U*^xx.xx
  2078.                        * = if used, commas not allowed in answer.
  2079.                        ^ = if used, scientific notation is allowed.
  2080.                        xx. =if used, digits left of decimal point allowed.
  2081.                        .xx =if used, digits right of decimal point allowed.
  2082.                         Example  DPRN U6.2"$"(x)
  2083.                     $ =string memory.  Format: $letter  $A to $Z
  2084.                     "message" or ;message;  See note 1.
  2085.                     (math expression) The result of.  See note 2.
  2086.                           Data statement is allowed.
  2087.                           Variable=expression is not allowed.
  2088.                         Example  x=inp:DPRN s20 ;$; (x*100) n d2 n
  2089.                    Note: D and S sub-statements number can be from
  2090.                         0 to 255 decimal.
  2091.                         All parameter changes by this statement are
  2092.                         temporary.  Old parameters returned when done.
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.                                          23
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.          DSP      DiSPlay statement:  Used to send the answer, answer in
  2117.                    hex form, carriage return and line feed, or other data
  2118.                    to be displayed.
  2119.                         Format:  DSP sub-statements
  2120.                             or:  DISP sub-statements
  2121.                    Sub-statements:  (none, any or all may be used)
  2122.                     A =Answer of previous math expression before DSP.
  2123.                     B =Background color, formats: Bnumber or B(expression)
  2124.                     C =set cursor Column, formats: Cnumber or C(expression)
  2125.                     D =Character (dec.), formats: Dnumber or D(expression)
  2126.                     F =Foreground color, formats: Fnumber or F(expression)
  2127.                     H =answer of previous expression in Hex form.
  2128.                     N =next line (CR & LF to the display).
  2129.                     O =send CR only to the display.
  2130.                     R =set cursor Row, formats: Rnumber or R(expression)
  2131.                     S =Spaces,  formats: Snumber or S(expression)
  2132.                     U =using answer format.  (See DPRN statement)
  2133.                     $ =string memory, format: $letter or $(expression)
  2134.                     "message" or ;message;  See note 1.
  2135.                     (math expression) The result of.  See note 2.
  2136.                            Data statements are allowed.
  2137.                            Variable=expression is not allowed.
  2138.                         Example  x=inp:DSP F4 "x= " A "degrees" F0 N
  2139.                    Note:  A space is required after DSP if sub-statement
  2140.                         starts with a letter.  D and S sub-statement
  2141.                         numbers can be from 0-255 decimal.  B and F sub-
  2142.                         statements are ignored by the MATHXR program.
  2143.                         All parameter changes by this statement are
  2144.                         temporary.  Old parameters returned when done.
  2145.          
  2146.          
  2147.          EDITOR   Define the editor to be used by the EDIT command.
  2148.                    The path and complete name of the editor must be less
  2149.                    then 40 characters long or an error message will result.
  2150.                    The editor must be defined before the EDIT command will
  2151.                    function.  The best place for this statement is in the
  2152.                    MATHX.DFT file.   (MATHX program only)
  2153.                         Format:  EDITOR=path and complete command <enter>
  2154.                         Example  EDITOR=C:\DOS\EDLIN.COM <enter>
  2155.          
  2156.          
  2157.          EOFF     Display scientific notation of decimal answers using [].
  2158.                    example  1.234 [-6]
  2159.          
  2160.          
  2161.          EON      Display scientific notation of decimal answers using E.
  2162.                    example  1.234 E-6
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.                                          24
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.          
  2183.          EREQ     Sets Exponent REQuired point right of decimal point.
  2184.                    When the DIGR setting is greater then the EREQ setting,
  2185.                    then scientific notation is required if the answer has
  2186.                    digits greater then DIGR allows.  If the DIGR setting
  2187.                    is equal to or less then EREQ, then the answer is
  2188.                    limited to the setting of DIGR.  This statement is used
  2189.                    to control when scientific notation is used with
  2190.                    consideration to the right side of the decimal point.
  2191.                    (If scientific notation is enabled.  See XON and XOFF)
  2192.                      Note:  When the answer is displayed using scientific
  2193.                    notation, the placement of the decimal point may be
  2194.                    different then the normal answer.  If the exponent is
  2195.                    equal to zero, the exponent is not displayed but the
  2196.                    display form may still be different from the normal
  2197.                    decimal answer.
  2198.                         Format:  EREQ number
  2199.                              number can = 1 to 14 (decimal)
  2200.                         Example 1:  DIGL8:DIGR6:EREQ7:PI/100
  2201.                              The answer will be .031416
  2202.                         Example 2:  DIGL 8:DIGR 7:EREQ 6:PI/100
  2203.                              The answer will be 3.1415926535898 [-2]
  2204.                         (DIGL setting was greater then 6.  A different
  2205.                         answer would result if DIGL was less then 7)
  2206.          
  2207.          
  2208.          FC       Set foreground color.  See CC statement.
  2209.          
  2210.          
  2211.          FF       Sends a Form Feed to the printer.
  2212.                    (if printer is enabled using the PON statement)
  2213.          
  2214.          
  2215.          FKEY     Define Function KEY statement.  (No shift functions)
  2216.                         Format:  FKEYnumber=definition <enter>
  2217.                            or :  FKEYnumber=definition « <enter>
  2218.                    Only function keys 1 to 8 can be defined.  The
  2219.                    definition must be 40 characters or less in length or
  2220.                    an error message will be displayed.  The definition
  2221.                    can be made up of expressions, statements or a command.
  2222.                    The ~ character can be used to clear any line data.
  2223.                    The « character causes the instruction line to be
  2224.                    entered after the Function key is hit.  The «
  2225.                    character can be entered by holding down the ALT
  2226.                    key and hitting 1 7 4 on the number key pad.
  2227.                         Example 1   FKEY2=/25.4 <enter>
  2228.                         Example 2   FKEY6=~cls« <enter>
  2229.                    Note: FKEY statements can be used in MATHXR.DFT,
  2230.                         MATHX.DFT and math application files.
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.                                          25
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.          GOSUB    Call sub-routine.  See CALL statement.
  2249.          
  2250.          
  2251.          GOTO     GOTO location number.  (Jump)
  2252.                       Formats:  GOTO number   or: GO number
  2253.                    number can = 0 to 25 for instruction line or
  2254.                    MATHXR.DFT and MATHX.DFT (defaults) files.
  2255.                    number can = 0 to 999 for application files.
  2256.                      0 = start of instruction line or file.
  2257.                    The location format is:   #number
  2258.                       Example  GOTO3:#1:dsp;1 ;n:#2:dsp;2 ;n:#3:dsp;3 ;n:
  2259.                    Note:  A location of #0 is not allowed.
  2260.                    Note:  If in a continuous loop, hit the ALT-Q keys.
  2261.          
  2262.          
  2263.          GRAD     Set angular mode designation to GRADS.
  2264.                    The bottom information bar will show GRAD.
  2265.          
  2266.          
  2267.          HEAD     Header statement.  Setup and display a one line header.
  2268.                    For information or a menu.  (MATHX program only)
  2269.                         Format:  HEAD sub-statement/s
  2270.                      Sub-statements:  (none, any or all may be used)
  2271.                         B = Set Background color.  (color systems only)
  2272.                         F = Set Foreground color.  (color systems only)
  2273.                              Above formats are Xnumber or X(expression)
  2274.                              See CC and BC statements for color values.
  2275.                         H = Set to normal header colors. (from W sub-stat.)
  2276.                         W = Set header to pop-down menu border colors.
  2277.                         "message" or ;message;  Header line message.
  2278.                              See note 1.  (carriage returns are ignored)
  2279.                         ! = Set the Pick letter for a pull-down menu.
  2280.                              Used only by the MATHX.ENV file or application
  2281.                                .ENV files through the SLOC statement.
  2282.                              This statement requires special processing
  2283.                                if used in applications or utilities.
  2284.                              The pick character color is set by the MENU
  2285.                                or WIND  P sub-statement.
  2286.                              Format:  !letter    (upper or lower case A-Z)
  2287.                       Note:  For any sub-statements not used in the header
  2288.                             definition, the old or default values are used.
  2289.                              Also the EVHD statement has priority over the
  2290.                             HEAD statement.  (HEAD will not replace EVHD)
  2291.                       Example  HEAD H" EXIT  OPTIONS "W" SETUP "H" HELP "
  2292.               
  2293.          
  2294.          HOFF     Turn the header line off.  (MATHX program only)
  2295.                    Note:  Will not turn off the environment header (EVHD)
  2296.                           unless used from within the environment file.
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.                                          26
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.          IF       IF the test passes then do sub-statement, else continue.
  2315.                    Format 1: IF expression test expression } sub-statement
  2316.                       Test can be one or two of the logic characters < = >
  2317.                      Example  IF sin(x+y) => z }5:IF i=1}q:IF i=2}c6:
  2318.                    Format 2:
  2319.                     IF $memory or"string" test $memory or"string"}sub-stat.
  2320.                       $(expression) can be used for $memory letter value.
  2321.                       Test can be = for equals and <> or >< for not equals
  2322.                       Leading and trailing spaces are not part of the test.
  2323.                       The case may be tested, see KON, KOFF statements.
  2324.                       Strings must be in the form of "string" or ;string;.
  2325.                       The maximum length of a string is 60 characters.
  2326.                      Example  IF $X = "yes" } q:IF $A <> $B } 2
  2327.                    Sub-statements:  (see GOTO, QUIT, CALL, RET statements)
  2328.                         Decimal number = GOTO number.
  2329.                         C = CALL number.  Format: Cnumber  (decimal)
  2330.                         Q = QUIT.
  2331.                         R = RETurn to caller.
  2332.                    Alternate THEN format:  }} statement or expression
  2333.                      Example  IF x>25 }} IF x<50 }} y=x :dsp(y)
  2334.                    Note:  If in a continuous loop, hold down the ALT-Q keys
  2335.                           to quit.
  2336.                    Note:  A space is required after "IF" when the first
  2337.                           character of the expression is a letter.
  2338.          
  2339.          
  2340.          INFO     Get system and program information statement.  Must be
  2341.                    a variable equates statement.
  2342.                         Format:  variable = INFO
  2343.                         Example  X=INFO
  2344.                      Variable 7-digit number format:
  2345.                         x,xxx,xxx
  2346.                         └─┬┘│ ││└── 1 if mouse present (MATHX only), else 0
  2347.                           │ │ │└─── Video display type:  (0 if MATHXR)
  2348.                           │ │ │       1=MDA  2=HGA  3=CGA  4=EGA
  2349.                           │ │ │       5=MCGA  6=VGA
  2350.                           │ │ └──── 0 if Monochrome or LCD, 1 if Color.
  2351.                           │ └────── 0 (MATHX), 1 (MATHXR)
  2352.                           └──────── Math version number.
  2353.          
  2354.          
  2355.          INPP     INPut from I/O Port to a variable.
  2356.                      The variable will be given the decimal value of the
  2357.                      the data received from the I/O port.
  2358.                         Format:   variable = INPP port number
  2359.                             or:   variable = INPP (expression)
  2360.                         Example   X=INPP(z):dsp(x)
  2361.                      Note:  This statement is available only on registered
  2362.                              versions of MATH EXTRA.  This statement should
  2363.                              only be used if you know your I/O hardware.
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.                                          27
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.          INPUT    INPut from the keyboard to a variable or string memory.
  2381.                      The <enter> key will end the input.
  2382.                      The cursor size changes for the input response.
  2383.                    Format 1:  variable = INP(expression){number}
  2384.                          or:  variable = INPUT(expression){number}
  2385.                      The keyboard response has to be a math expression.
  2386.                      Statements or messages are not allowed.
  2387.                      The input can be up to the (expression) value long or
  2388.                         60 characters max.   One character minimum allowed.
  2389.                      The {number} is used for a GOTO location if the F1
  2390.                         key is hit for help.  If {number} is not given,
  2391.                         no INPUT statement help will be available.
  2392.                      The (expression) & {number} are not required.
  2393.                      A {number} is not allowed in the MATHXR program.
  2394.                      If the <enter> key or ESC is hit without entering
  2395.                         anything first, the variable will be unchanged.
  2396.                      Example  Z=INP(10):Z'=INP:Z*Z'
  2397.                    Format 2:  $letter = INP(expression){number}
  2398.                          or:  $letter = INPUT(expression){number}
  2399.                      $(expression) can be used for $letter value.
  2400.                      The (expression){number} use is the same as format 1.
  2401.                      If <enter> key is hit without entering anything first,
  2402.                      the string memory will be cleared.  If the ESC key is
  2403.                      hit, the string memory will be left unchanged.
  2404.                      Example  $X=INP:$Y=INP(2){22}:$Z="USA":DSP $Xs1$Ys1$Z
  2405.          
  2406.          
  2407.          INS      Set to INSert mode.  (or use INSERT key to toggle)
  2408.                    The mode is displayed on the bottom information bar.
  2409.          
  2410.          
  2411.          KYCK     Check for key input. (running KeY ChecK)  (MATHX only)
  2412.                    Data returned:
  2413.                      Decimal value of the character key hit, or
  2414.                      Scan code of the non-character key hit + 200, or
  2415.                      0 if no key is now down.
  2416.                         Format:  variable=KYCK
  2417.                         Example  x=KYCK:if x=27}q:x=mloc
  2418.          
  2419.          
  2420.          KOFF     Disable case check for IF statements using string memory.
  2421.          
  2422.          
  2423.          KON      Enable case check for IF statements using string memory.
  2424.          
  2425.          
  2426.          KYIN     KeY INput or mouse data to variable.  Data returned:
  2427.                    Decimal value of the character key hit, or
  2428.                    Scan code of the non-character key hit + 200, or
  2429.                    Mouse cursor location + button values. (MATHX only)
  2430.                       Button values: Left 10000, Right 20000, Middle 40000.
  2431.                       Cursor location = character positions to mouse cursor
  2432.                       using line wrapping.  (Top left corner = 1)
  2433.                         Format:  variable=KYIN
  2434.                         Example  MON:#1:X=KYIN:IF X=27}Q:IF X<20000}1
  2435.                    Note:  The bottom information bar will show KEY-IN.
  2436.  
  2437.                                          28
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.          MENU     Pop-up window menu making statement or
  2447.          MENUU    3D type pop-up window menu making statement.
  2448.                    The menu statement is a high level statement that is a
  2449.                    combination of the WIND, MLIN, KYCK and WLCC statements.
  2450.                    From a menu, the mouse, keyboard or cursor keys can be
  2451.                    used to select a menu item line and the number of that
  2452.                    line will be available using the MLVL statement.
  2453.                    To select a line using the mouse, just move the mouse
  2454.                    cursor to the line and hit the left button.  To use the
  2455.                    keyboard, the up or down cursor keys can be used and
  2456.                    then hit the enter key, or hit the number of the line
  2457.                    desired and then hit the enter key.  If pick letters
  2458.                    are used, select by hitting that letter and then enter.
  2459.                    If the ESC key is hit, the line level will be 0.
  2460.                    Only one pop-up window or menu at a time can be used.
  2461.                    (MATHX program only)
  2462.                         Format:  MENU sub-statement/s
  2463.                             or:  MENUU sub-statement/s    (3D type)
  2464.                     Sub-statements:  (none, any or all can be used)
  2465.                         B = Background color.  (color systems only)
  2466.                         C = Column number menu window starts on.
  2467.                         F = Foreground color.  (color systems only)
  2468.                         P = Pick letter color.  (color systems only)
  2469.                         R = Row number menu window starts on.
  2470.                         T = Type of border.  1=┌─┐  2=╒═╕  3=╔═╗  4=none
  2471.                         BB= Border background color.  (color systems only)
  2472.                         BF= Border foreground color.  (color systems only)
  2473.                         WC= Window menu columns.  (including border)
  2474.                         WR= Window menu rows.  (including border)
  2475.                      The above formats are Xnumber or X(expression)
  2476.                      See CC and BC statements for color values.
  2477.                      Note:  For any of the above sub-statements not used
  2478.                              in the menu definition, the old or default
  2479.                              values are used.  The WIND and MENU statement
  2480.                              share these sub-statement settings.
  2481.                         I = Immediate response to pick letter with no
  2482.                              enter key required.
  2483.                         M = Put Mouse cursor on menu upper left corner.
  2484.                         N = Next line. (for message)
  2485.                         X = Auto-setup and centering of the menu.
  2486.                              Sets the C, R, WC and WR sub-statement values
  2487.                              for the messages entered up to this point.
  2488.                              Note:  These sub-statements can still be
  2489.                                    changed after using the X sub-statement.
  2490.                         "message" or ;message;  See note 1.
  2491.                              All other sub-statements must be used outside
  2492.                              of the "message" or ;message; area.
  2493.                         ! = Set the Pick letter for current line.
  2494.                              (To pick a menu item using the keyboard.)
  2495.                                Format:  !letter  (upper or lower case A-Z)
  2496.                                   also allowed 0-9!@#$%&*()_-+=,.<>?/;:'"
  2497.                    Example  MENUU BB6 BF15" Select:<enter>
  2498.                              "!Q"uit<enter>
  2499.                              "!R"ight triangle<enter>
  2500.                              "!O"blique triangle "x<enter>
  2501.  
  2502.  
  2503.                                          29
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.          MLIN     Get the LINe the mouse cursor is on in the pop-up window.
  2513.                    Button information is also returned but in a different
  2514.                    way then the MLOC or KYIN statements.  For MON2 mode
  2515.                    only.  (MATHX program only)
  2516.                         Format:  variable=MLIN
  2517.                              Data returned = line number + buttons used
  2518.                              if any.  left=100, right=200, middle=400
  2519.                              If the cursor is not on a line in the pop-up
  2520.                              window, zero or only the button information
  2521.                              is returned for line data.
  2522.                         Example  MON2:#1:X=MLIN:if x=0}1:if x>99}2:wlcc(x)
  2523.          
  2524.          
  2525.          MLOC     Get Mouse cursor LOCation and button information.
  2526.                    Data returned is same as the KYIN statement for the
  2527.                    mouse.  For MON2 mode only.  (MATHX program only)
  2528.                         Format:  variable=MLOC
  2529.                              (0 is returned if not in MON2 mode)
  2530.                         Example  MON2:#1:x=MLOC:if x<10000}1
  2531.          
  2532.          
  2533.          MLVL     Set or get menu line level.  The MENU statement will set
  2534.                    the line level to the number of the line selected.
  2535.                         Format 1:  MLVL number   or   MLVL(expression)
  2536.                              Sets the menu line level to the number or
  2537.                              expression value.
  2538.                              Examples  MLVL 2   or   MLVL(E+1)
  2539.                         Format 2:  variable = MLVL
  2540.                              Gives the value of the menu line level to the
  2541.                              indicated variable.
  2542.                              Example  L=MLVL
  2543.          
  2544.          
  2545.          MOFF     Disable mouse operation and turn off mouse cursor.
  2546.                    Does not affect instruction line mouse use. (MATHX only)
  2547.          
  2548.          
  2549.          MON      Enable mouse operation.  There are 2 modes:  (MATHX only)
  2550.                      MON or MON1: mouse operation for KYIN statement only.
  2551.                      MON2:  turn on the mouse and leave on. (See MLOC)
  2552.                    Note:  Does not affect instruction line mouse use.
  2553.                         The mouse is disabled in the graphic mode.
  2554.          
  2555.          
  2556.          MSET     Set the cursor location for mouse operation, else the
  2557.                    last mouse cursor location is used.  The cursor location
  2558.                    is the number of character positions to the desired
  2559.                    cursor location using line wrapping. (Top left corner=1)
  2560.                    (MATHX program only)
  2561.                       Format:  MSET number
  2562.                           or:  MSET (expression)  See note 2.
  2563.                       Example  MSET 741:x=kyin
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.                                          30
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.          ON       On expression value, GOTO or CALL using a given list of
  2579.                    addresses.  The address use depends on the value of the
  2580.                    given expression.  If expression value = 0 or more then
  2581.                    the number of given locations in the list, then the
  2582.                    statement will continue with no action taken.
  2583.                       Format:  ON (expression) G or C {numb,numb,numb,etc.}
  2584.                              G=GOTO
  2585.                              C=CALL or GOSUB
  2586.                       Example  ON (x+1) G {10,11,12,13,14,15}
  2587.                              If x+1=4 then the program would GOTO #13.
  2588.                       Example  ON (y) C {20,21,22,23}
  2589.                              If y=1 then the program would CALL #20.
  2590.                              If y=0 or if y=5, no CALL would be made.
  2591.          
  2592.          
  2593.          OUTP     Output to I/O Port.  Send given data to given output
  2594.                    port.  Data and port values can be from 0 to 65535.
  2595.                       Format:  OUTP (port expression)(data expression)
  2596.                           or:  OUTP port(data expression)
  2597.                           or:  OUTP (port expression)data
  2598.                       Example  OUTP 200(10):OUTP (201)(5):OUTP (202)6
  2599.                    WARNING!  This statement is available only on registered
  2600.                              versions of MATH EXTRA.  This statement
  2601.                              is to be used only if you know how your I/O
  2602.                              hardware operates!!  If you do not know what
  2603.                              can happen using this statement then DO NOT
  2604.                              use it.  Hard disk, floppy disk, video
  2605.                              hardware and much more can be affected!
  2606.          
  2607.          
  2608.          OVER     Set to OVERtype mode.  (or use the INSERT key to toggle)
  2609.                    The mode is displayed on the bottom information bar.
  2610.          
  2611.          
  2612.          PARM      Get parameter values statement.  (MATHX program only)
  2613.                         Format:  variable=PARMx
  2614.                            Parameter    Result (else = 0)
  2615.                              PARMA     1 if comma display mode
  2616.                              PARMB     1 if blinking enabled
  2617.                              PARMC     1 if complement hex when negative
  2618.                              PARMDL    DIGL statement value
  2619.                              PARMDR    DIGR statement value
  2620.                              PARMDQ    EREQ statement value
  2621.                              PARME     1 if E scientific notation form
  2622.                              PARMG     0 if DEG, 1 if RAD, 2 if GRAD mode
  2623.                              PARMI     1 if insert line edit mode
  2624.                              PARMK     1 if case check enabled
  2625.                              PARMP     1 if printer enabled
  2626.                              PARMQ     1 if quiet mode enabled
  2627.                              PARMR     1 if no round off of answer
  2628.                              PARMX     1 if scientific notation enabled
  2629.                         Example  X=PARMG:if x<>0}}degm
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.                                          31
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.          POFF     Disable Printer operation for DPRN and PRN statements.
  2645.          
  2646.          
  2647.          PON      Enable Printer operation for DPRN and PRN statements.
  2648.                    The bottom information bar will show PRINT.
  2649.          
  2650.          
  2651.          PRN      PRiNt statement:  Used to send the answer, answer in hex
  2652.                    form, carriage return and line feed, or other data to
  2653.                    the printer. (if enabled)
  2654.                      Format:  PRN sub-statements
  2655.                    Sub-statements:  (none, any or all may be used)
  2656.                     A =Answer of previous math expression before PRN.
  2657.                     D =Character (dec.), formats: Dnumber or D(expression)
  2658.                     F =send a Form feed to the printer.
  2659.                     H =answer of previous expression in Hex form.
  2660.                     N =next line (CR & LF to the printer).
  2661.                     O =send CR only to the printer.
  2662.                     S =Spaces,  formats: Snumber or S(expression)
  2663.                     U =using answer format.  (See DPRN statement)
  2664.                     $ =string memory, format: $letter or $(expression)
  2665.                     "message" or ;message;  See note 1.
  2666.                     (math expression) Print the result of.  See note 2.
  2667.                         Data statement is allowed.
  2668.                         Variable=expression is not allowed.
  2669.                       Example  X=INP:Y=INP:Y*X:PRN H N:
  2670.                    Note: A space is required after PRN if the sub-statement
  2671.                          starts with a letter.  The D and S sub-statement
  2672.                          numbers can be 0-255 decimal.
  2673.                          All parameter changes by this statement are
  2674.                          temporary.  Old parameters returned when done.
  2675.          
  2676.          
  2677.          QOFF     Quiet mode disabled.  Allows sound from BEEP & TONE.
  2678.          
  2679.          
  2680.          QON      Quiet mode.  Disable sound from BEEP & TONE statements.
  2681.          
  2682.          
  2683.          QUIT     QUIT instruction line or application file execution.
  2684.                    Not required at the end of the line or file.
  2685.          
  2686.          
  2687.          RADM     Set the angular designation to RADian Mode.  The bottom
  2688.                    information bar will show RAD.
  2689.          
  2690.          
  2691.          RC       Restore background and character colors and window and
  2692.                    selected line colors.  Also restores pick letter color.
  2693.                    See SC statement.  (MATHXR will ignore this statement)
  2694.  
  2695.  
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.                                          32
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.          RET      RETurn to the CALL location.  (Ends the sub-routine)
  2711.                    All sub-routines should end with a RET statement.
  2712.                    Note:  A QUIT statement is allowed in a sub-routine.
  2713.          
  2714.          
  2715.          ROFF     Turn the Round off of answer display form OFF.
  2716.          
  2717.          
  2718.          RON      Turn the Round off of answer display form ON.
  2719.          
  2720.          
  2721.          ROW      Put the cursor at ROW number.  (For application use)
  2722.                      Format:  ROW number
  2723.                          or:  ROW (expression)  See note 2.
  2724.                      Example  ROW (x+2)
  2725.                      Example  COL0:ROW0  (puts cursor at top left corner)
  2726.          
  2727.          
  2728.          SAVE:    SAVE expression/s and/or statement/s in memory, then
  2729.                    execute line.  Only one line can be saved at a time.
  2730.                    (Writes over the previous saved line each time it is
  2731.                    used)  See GET command. (Not allowed in defaults file
  2732.                    or application files.
  2733.                      Format:  SAVE:expression/s and/or statement/s <enter>
  2734.                      Example  SAVE:X=0:#1:X=X+1:DSP;TEST ;AN:IF X<20}1
  2735.          
  2736.          
  2737.          SC       Save background and character colors and window and
  2738.                    selected line colors.  Also saves pick letter color.
  2739.                    See RC statement. (MATHXR will ignore this statement)
  2740.          
  2741.          
  2742.          SLOC     Start LOCation for application file.  Used to start an
  2743.                    application file (or environment file) at a different
  2744.                    place other then the beginning.  See "@" command.
  2745.                    For application or environment file use only.
  2746.                    Note:  ALT- pick letters or S-F1 through S-F8 entered
  2747.                           from the main math screen affect the value of
  2748.                           the start location given to the variable.  The
  2749.                           environment file uses this statement to get this
  2750.                           information.  If using the "@" command, the
  2751.                           variable is given the decimal value of the "@"
  2752.                           command character or if no character was given,
  2753.                           the variable will equal zero.
  2754.                         Format:  variable=SLOC
  2755.                         Example  x=SLOC:if x<>0}1:x=kyin:#1:if x=97}100
  2756.          
  2757.          
  2758.          TIME     Get TIME from 24 hour clock.  (MATHX program only)
  2759.                         Format:  variable=TIME
  2760.                              The variable has the following format:
  2761.                                 xx.xxxx  (hours.minutes seconds)
  2762.                              (The DMS & DEG statements may be used to do
  2763.                               math operations on the time.)
  2764.                         Example  x=TIME:aoff:digr2:dsp(x*100)
  2765.  
  2766.  
  2767.                                          33
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.          TITLE    Put a title on the upper right corner of the application
  2777.                    window.  The title must be 24 characters or less in
  2778.                    length or an error message will be displayed.  For
  2779.                    application files only.
  2780.                    (MATHX program only)
  2781.                         Format:  TITLE=message <enter>
  2782.                         Example  TITLE= MATH DEMO PROGRAM <enter>
  2783.          
  2784.          
  2785.          TONE     Send a TONE to the speaker.  Seven octaves of musical
  2786.                    frequencies are available.
  2787.                    (MATHXR will ignore this statement)
  2788.                    The tone duration is 1/4 of a second.
  2789.                         Format:  TONE number
  2790.                             or:  TONE(expression)   See note 2.
  2791.                               number can = 0 to 84 (0=1/4 sec. of no tone)
  2792.                         Example  TONE10:TONE20:TONE30
  2793.                         Example  #1:Tone(rand*.727):goto1:|Hit q to quit|
  2794.                    Tones generated by number or expression value:
  2795.                     1 = C  1          30 = F  3          59 = A# 5
  2796.                     2 = C# 1          31 = F# 3          60 = B  5
  2797.                     3 = D  1          32 = G  3          61 = C  6
  2798.                     4 = D# 1          33 = G# 3          62 = C# 6
  2799.                     5 = E  1          34 = A  3          63 = D  6
  2800.                     6 = F  1          35 = A# 3          64 = D# 6
  2801.                     7 = F# 1          36 = B  3          65 = E  6
  2802.                     8 = G  1          37 = C  4 *        66 = F  6
  2803.                     9 = G# 1          38 = C# 4          67 = F# 6
  2804.                    10 = A  1          39 = D  4          68 = G  6
  2805.                    11 = A# 1          40 = D# 4          69 = G# 6
  2806.                    12 = B  1          41 = E  4          70 = A  6
  2807.                    13 = C  2          42 = F  4          71 = A# 6
  2808.                    14 = C# 2          43 = F# 4          72 = B  6
  2809.                    15 = D  2          44 = G  4          73 = C  7
  2810.                    16 = D# 2          45 = G# 4          74 = C# 7
  2811.                    17 = E  2          46 = A  4          75 = D  7
  2812.                    18 = F  2          47 = A# 4          76 = D# 7
  2813.                    19 = F# 2          48 = B  4          77 = E  7
  2814.                    20 = G  2          49 = C  5          78 = F  7
  2815.                    21 = G# 2          50 = C# 5          79 = F# 7
  2816.                    22 = A  2          51 = D  5          80 = G  7
  2817.                    23 = A# 2          52 = D# 5          81 = G# 7
  2818.                    24 = B  2          53 = E  5          82 = A  7
  2819.                    25 = C  3          54 = F  5          83 = A# 7
  2820.                    26 = C# 3          55 = F# 5          84 = B  7
  2821.                    27 = D  3          56 = G  5
  2822.                    28 = D# 3          57 = G# 5
  2823.                    29 = E  3          58 = A  5         * Middle C.
  2824.          
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.                                          34
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.          USE      USE statement:  Used to send the answer, answer in hex
  2843.          USES      form, variables, string memories, or other data to
  2844.                    the command line or to the program from where the MATHXR
  2845.                    program was used.  This is done using the keyboard
  2846.                    buffer.  A maximum of 60 characters can be sent using
  2847.                    this statement.  The MATHXR program is terminated when
  2848.                    the carriage return is hit at the end of this statement.
  2849.                    Spaces are not sent unless the USES form is used.  Only
  2850.                    the first 126 characters of the IBM character set are
  2851.                    used, not including the control characters.
  2852.                    Note:  If used in an application file, the application
  2853.                      file and MATHXR will be terminated and the data will
  2854.                      be sent to the command line or to the program from
  2855.                      where the MATHXR program was used.
  2856.                    Note:  This statement may not work on early PC's and
  2857.                    non-standard BIOS's.
  2858.                    (MATHXR program only.)
  2859.                      Format:  USE sub-statements
  2860.                          or:  USES sub-statements
  2861.                    Sub-statements:  (none, any or all can be used)
  2862.                     A =Answer of previous math expression.
  2863.                     D =Character (dec.), formats: Dnumber or D(expression)
  2864.                         (13 and 20 through 126 are usable)
  2865.                     H =answer of previous expression in Hex form.
  2866.                     N =send a carriage return (ENTER KEY) to the buffer.
  2867.                     S =Spaces,  formats: Snumber or S(expression)
  2868.                         (USES statement only, 0-255 allowed)
  2869.                     U =using answer format.  (See DPRN statement)
  2870.                     $ =string memory, format: $letter or $(expression)
  2871.                     "message" or ;message;  See note 1.
  2872.                     (math expression) Send the result of.  See note 2.
  2873.                         Data statement is allowed.
  2874.                         Variable=expression is not allowed.
  2875.                       Example  X=INP:Y=INP:Y*X:USE A
  2876.                    Note: A space is required after USE if the sub-statement
  2877.                          starts with a letter.
  2878.          
  2879.          
  2880.          VIDM     Get video mode.  The present video mode is placed into
  2881.                    the variable.  (Uses BIOS INT 010H function 0FH)
  2882.                    (MATHX only)
  2883.                         Format:  variable=VIDM
  2884.                         Example  X=VIDM
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.                                          35
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.          WAIT     WAIT (pause), length in seconds.  Wait will terminate
  2909.                    if any key or mouse button is hit.
  2910.                         Format:  WAIT number
  2911.                              number can = 1 to 120 (seconds)
  2912.                         Example  WAIT 10:dsp;Time up;
  2913.          
  2914.          
  2915.          WDSP     Window DISplay data.  Sends data to the pop-up window
  2916.                    after the window is on the screen.  (MATHX only)
  2917.                    Used to put data in pop-up window that might take time
  2918.                    to get.  (like answers to some problems)
  2919.                         Format:  WDSP sub-statement/s
  2920.                    Sub-statements:  (none, any or all can be used)
  2921.                     A =Answer of previous math expression before WDSP.
  2922.                     B =Background color, formats: Bnumber or B(expression)
  2923.                     D =Character (dec.), formats: Dnumber or D(expression)
  2924.                     F =Foreground color, formats: Fnumber or F(expression)
  2925.                     H =answer of previous expression in Hex form.
  2926.                     L =Line number next, formats: Lnumber or L(expression)
  2927.                     N =next line (move down one line).  See note below.
  2928.                     O =start line over (move to start of line).
  2929.                     S =Spaces,  formats: Snumber or S(expression)
  2930.                     U =using answer format.  (See DPRN statement)
  2931.                     $ =string memory, format: $letter or $(expression)
  2932.                     ! = Set the Pick letter for current line.
  2933.                         Not normally used in a window.  Will require
  2934.                         additional application programming to handle.
  2935.                         Format:  !letter   (upper or lower case)
  2936.                              also allowed 0-9!@#$%&*()_-+=,.<>?/;:'"
  2937.                     "message" or ;message;  See note 1.
  2938.                     (math expression) The result of.  See note 2.
  2939.                            Data statements are allowed.
  2940.                            Variable=expression is not allowed.
  2941.                     Example  wind wr4wc40r6c10nnnn:WDSP l1 $x n (x+y) n $y
  2942.                    Note:  D and S sub-statement numbers can be from 0-255
  2943.                         decimal.  All parameter changes by this statement
  2944.                         are temporary.  Old parameters returned when done.
  2945.                         Normally uses the pop-up window colors.  The N
  2946.                         sub-statement does not clear the rest of the data
  2947.                         on the line like it does for the WIND statement so
  2948.                         if old data must be cleared, N's must be used in
  2949.                         the WIND statement.
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.                                          36
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.          WIND     Pop-up window making statement or
  2975.          WINDD    3D type pop-up window making statement.  (MATHX only)
  2976.                    Only one pop-up window at a time can be used.
  2977.                         Format:  WIND sub-statement/s
  2978.                             or:  WINDD sub-statement/s    (3D type)
  2979.                     Sub-statements:  (none, any or all can be used)
  2980.                         B = Background color.  (color systems only)
  2981.                         C = Column number window starts on.
  2982.                         F = Foreground color.  (color systems only)
  2983.                         P = Pick letter color.  (color systems only)
  2984.                              Not normally used in a window statement.
  2985.                         R = Row number window starts on.
  2986.                         T = Type of border.  1=┌─┐  2=╒═╕  3=╔═╗  4=none
  2987.                         BB= Border background color.  (color systems only)
  2988.                         BF= Border foreground color.  (color systems only)
  2989.                         WC= Window columns.  (including border)
  2990.                         WR= Window rows.  (including border)
  2991.                      The above formats are Xnumber or X(expression)
  2992.                      See CC and BC statements for color values.
  2993.                      Note:  For any of the above sub-statements not used
  2994.                              in the window definition, the old or default
  2995.                              values are used.  The MENU and WIND statements
  2996.                              share sub-statement settings.
  2997.                         M = Put mouse cursor on window upper left corner.
  2998.                         N = Next line. (for message)
  2999.                         X = Auto-setup of the window.
  3000.                              Sets the C, R, WC and WR sub-statement values
  3001.                              for the messages entered up to this point.
  3002.                              The menu is centered on the screen.
  3003.                              Note:  These sub-statements can still be
  3004.                                    changed after using the X sub-statement.
  3005.                         Z = Do not display a window at this time.
  3006.                              Used to preset window type or colors at the
  3007.                              start of an application.
  3008.                              Note:  May also affect the MENU statement.
  3009.                         "message" or ;message;  See note 1.
  3010.                              All other sub-statements must be used outside
  3011.                              of the "message" or ;message; area.
  3012.                         ! = Set the Pick letter for current line.
  3013.                              Not normally used in a window.  Will require
  3014.                              additional application programming to handle.
  3015.                                Format:  !letter   (upper or lower case)
  3016.                                   also allowed 0-9!@#$%&*()_-+=,.<>?/;:'"
  3017.                                Example  !G"ames menu"
  3018.                    Note:  The INP, DSP and DPRN statements should not be
  3019.                         used when the window is on the screen unless you
  3020.                         do not mind if the window maybe overwritten.
  3021.                    Example  WIND R10 C30 WR3 WC10 N" ERROR!":wait5:woff
  3022.                    Example  WIND " PICK "N" Yes"N" No"X:i=kyin:woff
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.                                          37
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.          WLCC     Window line color change statement. (MATHX program only)
  3041.                    Used to show a selected line of a pop-up window.
  3042.                    Also used to preselect a line of a MENU.
  3043.                         Format:  WLCC sub-statement/s
  3044.                     Sub-statements:  (none, any or all can be used)
  3045.                         B = Background color.  (color systems only)
  3046.                         F = Foreground color.  (color systems only)
  3047.                         L = Line number of window.  (1=first line)
  3048.                              Above formats are Xnumber or X(expression)
  3049.                              See CC and BC statement for color values.
  3050.                         C = Complement window line colors. (color systems)
  3051.                      Note:  For any sub-statements not used, the old or
  3052.                             default value will be used.  The "C" statement
  3053.                             sets the complement mode, "B" & "F" reset it.
  3054.                             The WIND and MENU statements share these
  3055.                             sub-statement settings.
  3056.                      Example  wind:WLCC B1 F13 L1:i=mloc
  3057.          
  3058.          
  3059.          WOFF     Turn pop-up Window OFF.  (MATHX program only)
  3060.                    Note:  The CLS statements will also turn off the window.
  3061.          
  3062.          
  3063.          XOFF     Turn eXponential form (scientific notation) answer
  3064.                    ability OFF.  NOTE: If the answer cannot be displayed
  3065.                    without using scientific notation, an error will occur.
  3066.                    EXP-OFF will be displayed on bottom information bar.
  3067.          
  3068.          
  3069.          XON      Turn eXponential form (scientific notation) answer
  3070.                    ability ON.
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.                                          38
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.                               GRAPHIC MODE STATEMENTS
  3107.          
  3108.          The MATHX  program has  a  graphic  mode  for  displaying  graphic
  3109.          illustrations.  The graphics available in this mode are very basic
  3110.          in nature  and are  designed only  as a  simple illustration tool.
  3111.          This mode uses BIOS level commands and as a result may be somewhat
  3112.          slow with some video boards.  While in the graphic mode, any HEAD,
  3113.          MENU, WIND,  MON, and  WDSP statements  will be  ignored.    These
  3114.          statements do  not  function  in  the  graphics  mode.    The  INP
  3115.          statement operation is different in the graphic mode but all other
  3116.          statements work  correctly.   Aside from  all of  that, just about
  3117.          anything can  be displayed  using the  statements available to the
  3118.          graphic mode.   All  graphic drawing  statements use dot counts as
  3119.          values for  their sub-statements  when a  value is required.  (See
  3120.          statements NOTE  2.)  All locations are from the upper left corner
  3121.          of the graphic display area.  This area does not include the MATHX
  3122.          header and  varies according  to the  graphic display  mode  being
  3123.          used.  For all 16 color modes, you can use the FC statement to set
  3124.          the color of the items being displayed.  The 4 color modes may not
  3125.          display the correct color.  Note!  The MATHX graphic mode does not
  3126.          support the  Hercules graphic  cards.   You may  have to  add  the
  3127.          GRAPHICS and GRAFTABL commands to your AUTOEXEC.BAT file.
  3128.          
  3129.          
  3130.          GRAF      Graphic mode display on.  Clears the screen and puts the
  3131.                     graphic mode MATHX header at the top of the screen.
  3132.                     Unless set differently by the GMOD statement, the
  3133.                     display will be set to the default video mode for the
  3134.                     video type in use.  The graphic mode will stay
  3135.                     active until the GOFF statement is used or until
  3136.                     the application file or instruction line ends.
  3137.          
  3138.          
  3139.          ARC       Display an arc on the graphic screen.
  3140.                         Format:  ARC sub-statements
  3141.                     Sub-statements:
  3142.                      (none, any or all can be used in any order)
  3143.                         E = end angle in whole degrees.  (360 max)
  3144.                         F = set roundness factor.  (10 to 250 percent of Y)
  3145.                              default is 100, for EGA set to 80, for CGA 35.
  3146.                         R = radius of arc in graphic dots. (999 max)
  3147.                         S = start angle in whole degrees.  (360 max)
  3148.                         W = set line width in graphic dots.  (1 to 25)
  3149.                         X = dot columns from left edge to radius center.
  3150.                         Y = dot rows form top to radius center.
  3151.                       The above formats are Xnumber or X(expression)
  3152.                         H = set horizontal line width direction.
  3153.                         V = set vertical line width direction.
  3154.                      Note:  For any sub-statements not used, the old or
  3155.                             default value will be used.  The ARC and CIRC
  3156.                             statements share these settings.
  3157.                             The starting and ending angles of the arc are
  3158.                             drawn CCW from 3 o'clock so 0 deg's is at 3
  3159.                             o'clock and 90 deg's is at 12 o'clock.
  3160.                         Example  ARC X200 Y100 R50 F78 S10 E170
  3161.  
  3162.  
  3163.                                          39
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.          DOT       Display a dot on the graphic screen.
  3173.                         Format:  DOT sub-statements
  3174.                     Sub-statements:
  3175.                      (none, any or all can be used in any order)
  3176.                         T = type of dot.  (default is type 1)
  3177.                              type 1 is a single dot
  3178.                              type 2 is two dot columns by two dot rows
  3179.                              type 3 is three dot columns by three dot rows
  3180.                         X = dot columns from left edge to DOT.
  3181.                         Y = dot rows form top to DOT.
  3182.                       The above formats are Xnumber or X(expression)
  3183.                      Note:  For any sub-statements not used, the old or
  3184.                             default value will be used.
  3185.                         Example  DOT X30Y40T3
  3186.          
  3187.          
  3188.          CIRC      Display a circle on the graphic screen.
  3189.                         Format:  CIRC sub-statements
  3190.                     Sub-statements:
  3191.                      (none, any or all can be used in any order)
  3192.                         F = set roundness factor.  (10 to 250 percent of Y)
  3193.                              default is 100, for EGA set to 80, for CGA 35.
  3194.                         R = radius of arc in graphic dots. (999 max)
  3195.                         W = set line width in graphic dots.  (1 to 25)
  3196.                         X = dot columns from left edge to radius center.
  3197.                         Y = dot rows form top to radius center.
  3198.                       The above formats are Xnumber or X(expression)
  3199.                         H = set horizontal line width direction.
  3200.                         V = set vertical line width direction.
  3201.                      Note:  For any sub-statements not used, the old or
  3202.                             default value will be used.
  3203.                         Example  CIRC X200Y100R50F80
  3204.          
  3205.          
  3206.          GMOD      Set the graphic mode for the GRAF statement.  Used to
  3207.                     set the mode different from the default mode.  Use
  3208.                     before using the GRAF statement.  This statement is
  3209.                     ignored when in the graphic mode.  Note:  If your
  3210.                     display does not support the mode you select, you may
  3211.                     get a different mode or bad displayed video.
  3212.                     Also MATHX does not support 256 colors.
  3213.                         Format:  GMODnumber
  3214.                              Modes:
  3215.                                    4 (320 by 200    4 color  CGA)
  3216.                                    5 (320 by 200    4 color  CGA)
  3217.                                    6 (640 by 200    2 color  CGA)
  3218.                                   13 (320 by 200   16 color  EGA)
  3219.                                   14 (640 by 200   16 color  EGA)
  3220.                                   15 (640 by 350    2 color  EGA)
  3221.                                   16 (640 by 350  4,16 color EGA)
  3222.                                   17 (640 by 480    2 color  VGA)
  3223.                                   18 (640 by 480   16 color  VGA)
  3224.                                   19 (320 by 200  256 color  VGA)
  3225.                              Example  GMOD6:graf:fc4:circ x50y40r30
  3226.  
  3227.  
  3228.  
  3229.                                          40
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.          GOFF      Turn graphic mode off and return to the normal MATHX
  3239.                     screen.
  3240.          
  3241.          
  3242.          INPUT    INPut from the keyboard to a variable or string memory.
  3243.                    The MATHX graphic mode input statement does not support
  3244.                    all of the line editing and cursor control keys that
  3245.                    the normal input statement supports.  Only the back-
  3246.                    space key is supported.  If you have to change what
  3247.                    you have entered, you must backspace back to it to
  3248.                    change it.  Also the functions keys and ctrl-x are not
  3249.                    allowed and the F1 or S-F10 keys will not bring up help
  3250.                    information.  The length of the allowed input is also
  3251.                    controlled by how much of the line is remaining from
  3252.                    where the input starts on the graphic screen.  The
  3253.                    graphic screen uses a 80 character line so if your
  3254.                    input statement starts in the middle of the screen
  3255.                    you will not have the full 60 character input ability.
  3256.                    See the non-graphic INPUT statement for format and
  3257.                    other information.
  3258.          
  3259.          
  3260.          LINE      Display a line on the graphic screen.
  3261.                         Format:  LINE sub-statements
  3262.                     Sub-statements:
  3263.                      (none, any or all can be used in any order)
  3264.                         T = type of line.  (default is type 1)
  3265.                              type 1 __________________________
  3266.                              type 2 _ _ _ _ _ _ _ _ _ _ _ _ _
  3267.                              type 3 ..........................
  3268.                              type 4 . . . . . . . . . . . . .
  3269.                         W = width of line in dots.  (25 max)
  3270.                              (direction is determined by line direction)
  3271.                         X = dot columns from left edge to start of line.
  3272.                         Y = dot rows form top to start of line.
  3273.                         EX = dot colomns from left edge to end of line.
  3274.                         EY = dot rows form top to end of line.
  3275.                       The above formats are Xnumber or X(expression)
  3276.                      Note:  For any sub-statements not used, the old or
  3277.                             default value will be used.
  3278.                         Example  LINE x50y50ex50ey150t2
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.                                          41
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.                                   STATEMENT NOTES
  3305.                                           
  3306.          
  3307.          Note 1:   Care must be taken when using "message" or ;message;
  3308.                    sub-statements of the DPRN, DSP, PRN, WIND, WDSP, MENU
  3309.                    and HEAD statements.  These sub-statements do not end
  3310.                    when a carriage return is entered.  The carriage return
  3311.                    is passed on to the display and/or printer.  Therefor
  3312.                    a message can be many lines long.  This is nice for
  3313.                    programming but also is a problem.  Care must be use
  3314.                    to make sure the message ends with the same character
  3315.                    as it was started with.  The starting character must
  3316.                    not be used again until the end of the message.
  3317.                    Example: for the display message  DSP;Hit "Y" for yes;
  3318.                    do not enter DSP"Hit "Y" for yes".  A syntax error
  3319.                    would be the result.  In some cases a message error
  3320.                    would not be detected until far into the program.
  3321.                    Everything would be treated as a message until the
  3322.                    next message sub-statement using the same starting
  3323.                    character.  It is easy to forget the ending character
  3324.                    when the message is many lines long.  The syntax error
  3325.                    may end up in a place far away from the actual error.
  3326.                    Also note, all the display, print and window statements
  3327.                    using the message sub-statement will end at the end of
  3328.                    the current line unless a message sub-statement forces
  3329.                    it to use more lines.
  3330.          
  3331.          Note 2:   Many statements and sub-statements allow the use of the
  3332.                    form (expression).  The statement or sub-statement uses
  3333.                    the value of the math expression between parentheses
  3334.                    in place of a direct number.  Any math expression
  3335.                    allowed on the instruction line is allowed here.  Some
  3336.                    statements or sub-statements allow only a specific range
  3337.                    of values.  Then the allowed value closest to the value
  3338.                    of the expression will be used.  Also, the DPRN, DSP,
  3339.                    PRN and WDSP statements allow (expression) as a sub-
  3340.                    statement by itself.  In this case the resulting value
  3341.                    of the expression will be displayed or printed.  In all
  3342.                    other cases the ABSOLUTE VALUE OF THE INTEGER OF THE
  3343.                    EXPRESSION RESULT (positive whole number) will be used
  3344.                    in place of a direct number.  Remember, the expression
  3345.                    must be placed between parentheses when used with a
  3346.                    statement or sub-statement that allows its use.
  3347.                         Examples:
  3348.                              DSP R(X) C(Y)  (Z*2-T/3)
  3349.                              PRN S(X+2) ;VARIABLE Z=; (Z)
  3350.                              BC(X''):CC(Y'')
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.                                          42
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.                                       COMMANDS
  3371.          
  3372.          Commands are used to obtain information, save or get data, exit to
  3373.          DOS command  shell  or  edit  instructions.    When  used  in  the
  3374.          instruction line,  the command  is usually  the only thing allowed
  3375.          on the  line.   When used in an application file or defaults file,
  3376.          they can  end with a carriage return (<enter> key).  Some commands
  3377.          are only allowed in the instruction line.  The following is a list
  3378.          of  the   commands  in   alphabetical  order   and  the   required
  3379.          information about  the command.    Formats;  and  in  some  cases,
  3380.          examples are  given for  each command.  Commands can be entered in
  3381.          either upper  or lower case letters.  Some of the commands are not
  3382.          allowed in MATHXR.
  3383.          
  3384.          
  3385.          
  3386.          DEL      Delete file command.  Only one file at a time can be
  3387.                    deleted.  (* and ? characters not allowed in file name)
  3388.                    MATHX program only.
  3389.                         Format:  DEL drive:\dir\filename <enter>
  3390.                         Example  DEL temp.var <enter>
  3391.          
  3392.          
  3393.          DOS      Go to DOS command shell. (MATHX program only)  Enter
  3394.                    EXIT on command line to return back to MATHX program.
  3395.                    Uses the COMSPEC environment to find COMMAND.COM or
  3396.                    its equivalent and it must be present on the boot drive.
  3397.                    Not allowed in defaults file or application files.
  3398.                    (needs 256K of available memory before running MATHX)
  3399.                         Format:  DOS <enter>
  3400.          
  3401.          
  3402.          EDIT     Edit the application file now loaded in the MATHX
  3403.                    program.  (MATHX program only)  EDIT uses the program
  3404.                    defined by the EDITOR statement to edit the file.
  3405.                    Returns to the MATHX program when done editing and loads
  3406.                    the revised application file.  Not allowed in defaults
  3407.                    file or application files.
  3408.                      (needs 256K+ of available memory before running)
  3409.                         Format:  EDIT <enter>
  3410.          
  3411.          
  3412.          GET      GET the instruction line that was saved by the SAVE
  3413.                    statement or command.  See SAVE statement and command.
  3414.                    The saved line will be displayed and the REDO ENTRY
  3415.                    message will appear on the bottom information bar.
  3416.                    Not allowed in defaults file or application files.
  3417.                         Format:  GET <enter>
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.                                          43
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.          HELP     Display the HELP WINDOW.  (MATHX program only)
  3437.                    Not allowed in defaults file or application files.
  3438.                         Format:  HELP <enter> or ? <enter>
  3439.                    Note:  Shift F10 will display the HELP WINDOW
  3440.                           at any point in the instruction line.
  3441.          
  3442.          
  3443.          LIST     LIST the function key definitions.  Not allowed in
  3444.                    defaults file or application files.
  3445.                         Format:  LIST <enter>
  3446.          
  3447.          
  3448.          LOAD     LOAD into memory an application file.  The application
  3449.                    stays in memory until a new application is loaded or
  3450.                    until the math program is ended.  (MATHX program only)
  3451.                         Format:  LOAD filename <enter>
  3452.                            or :  LOAD drive:\dir\filename <enter>
  3453.                    Note: Can be used in the MATHX.DFT file.
  3454.                    The name of the file will be displayed on the right
  3455.                    side of the top information bar.  If the application
  3456.                    has an .ENV file, that file will be loaded too.  (The
  3457.                    application filename.ENV file is used to add a menu
  3458.                    to the operating environment.)
  3459.          
  3460.          
  3461.          LODM     LOaD all string Memories from a file command.  (MATHX
  3462.                    program only)  All string memory files are given the
  3463.                    extension .MEM.  Can be used in MATHX.DFT and MATHX
  3464.                    application files.
  3465.                         Format:  LODM filename <enter>
  3466.                            or :  LODM drive:\dir\filename <enter>
  3467.                            or :  LODM <enter>  (loads the MATHX.MEM file)
  3468.                         Example  lodm special
  3469.          
  3470.          
  3471.          LODV     LOaD Variables from a file command.  (MATHX only)
  3472.                    All are loaded unless the /3 switch is used.  The /3
  3473.                    switch allows only variables  A' through Z''' to be
  3474.                    loaded.  All variable files have the extension .VAR
  3475.                    Can be used in MATHX.DFT and MATHX application files.
  3476.                         Format:  LODV filename <enter>
  3477.                            or :  LODV drive:\dir\filename <enter>
  3478.                            or :  LODV <enter>  (loads the MATHX.VAR file)
  3479.                         Example  LODV special
  3480.                         Example  LODV MATHX /3
  3481.  
  3482.  
  3483.  
  3484.  
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.                                          44
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.          RUN      Load and RUN a secondary application file.  Does not
  3503.                    save the loaded file in memory.  Does not remove a
  3504.                    primary application file from the memory.
  3505.                    Not allowed in defaults file or application files.
  3506.                    (MATHX program only)
  3507.                         Format:  RUN filename <enter>
  3508.                            or :  RUN drive:\dir\filename <enter>
  3509.                         Example  RUN CONVERT.UTL <enter>
  3510.          
  3511.          
  3512.          SAVE     SAVE the previous instruction line entry command in
  3513.                    memory.  Only one line can be saved at a time. (Writes
  3514.                    over the previous saved line each time it is used)
  3515.                    See GET command.  Not allowed in defaults file or
  3516.                    application files.
  3517.                         Format:  SAVE <enter>
  3518.          
  3519.          
  3520.          SAVM     SAVe string Memories ($A thru $Z) to a file.  (MATHX
  3521.                    program only)  All string memory files are given the
  3522.                    extension .MEM.  Can be used in MATHX.DFT and MATHX
  3523.                    application files.
  3524.                         Format:  SAVM filename <enter>
  3525.                            or :  SAVM drive:\dir\filename <enter>
  3526.                            or :  SAVM <enter>  (saves to MATHX.MEM file)
  3527.                         Example  SAVM special
  3528.          
  3529.          
  3530.          SAVV     SAVe all Variables to a file.  (MATHX program only)
  3531.                    All variable files are given the extension .VAR.
  3532.                    Can be used in MATHX.DFT and MATHX application files.
  3533.                         Format:  SAVV filename <enter>
  3534.                            or :  SAVV drive:\dir\filename <enter>
  3535.                            or :  SAVV <enter>  (saves to MATHX.VAR file)
  3536.                         Example  SAVV special
  3537.               
  3538.          
  3539.          STAT     Display STATus of math control parameters.  Only the
  3540.                    parameters not displayed on the bottom information
  3541.                    bar are displayed and the statements now in effect
  3542.                    are in ().  (MATHX program only)
  3543.                         Format:  STAT <enter>
  3544.          
  3545.          
  3546.          @        Run the application file.  (If one is loaded.)
  3547.                    Must be the only thing on the instruction line.
  3548.                    Not allowed in an application file.
  3549.                    Not allowed in MATHXR.DFT file.  If used in MATHX.DFT
  3550.                    file, application is run on startup.
  3551.                         Format 1:  @ <enter>
  3552.                         Format 2:  @ character <enter>
  3553.                              The character can be an upper or lower case
  3554.                              letter from A to Z (case is used).
  3555.                              See SLOC statement.
  3556.  
  3557.  
  3558.  
  3559.                                          45
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.                                   ENVIRONMENT FILE
  3569.          
  3570.               MATH EXTRA (MATHX) can use a file named MATHX.ENV to setup an
  3571.          operating environment  for the math program.  This file is used to
  3572.          program and  control the  pop-down menus  that make  this  program
  3573.          easier to  use.   The mouse  or cursor control when using the pop-
  3574.          down menus are also controlled by this file.  The environment file
  3575.          is used  every time  the mouse  is clicked on the header line, the
  3576.          SHIFT-F1 through  SHIFT-F8 keys  are hit  or the  header ALT- pick
  3577.          letter keys  are entered.   If  no action is required, the file is
  3578.          exited.   Also, some  environment file  commands are  not executed
  3579.          until the  environment file  is exited.  All of the menu functions
  3580.          and selected  tasks are  controlled by  the MATHX.ENV  file. If an
  3581.          application file has an environment file, that information will be
  3582.          placed at  the end  of the MATHX.ENV file data and all the call or
  3583.          jump statement  locations of  the MATHX.ENV file will be available
  3584.          to the  application environment.   All the statements and commands
  3585.          available for  the math  program and application files, except the
  3586.          INP statement,  can be  used in  the environment  file.   All  the
  3587.          following statements and commands except the ENVIR command are for
  3588.          the environment file use only.
  3589.          
  3590.          
  3591.          APLI      Get application file information.  The returned data
  3592.                    will equal 0 if no application file is loaded, 1 if
  3593.                    an application file is loaded in memory and 2 if an
  3594.                    application file and an application environment file
  3595.                    is loaded.  The application environment file must
  3596.                    have the same name as the application but with the
  3597.                    extension (.ENV).  The application.ENV file is used
  3598.                    to give the environment a menu for the control of the
  3599.                    application if one is desired.
  3600.                         Format:  variable=APLI
  3601.          
  3602.          
  3603.          AWBB      Set or get application window border background color.
  3604.                    Can be used in two ways.  See the BC statement for color
  3605.                    values.  Format 1 is used to get the current color value
  3606.                    format 2 is used to set the color.
  3607.                         Format 1:  variable=AWBB
  3608.                         Format 2:  AWBB number  or  AWBB(expression)
  3609.          
  3610.          
  3611.          AWBF      Set or get application window border foreground color.
  3612.                    Can be used in two ways.  See the CC statement for color
  3613.                    values.  Format 1 is used to get the current color value
  3614.                    and format 2 is used to set the color.
  3615.                         Format 1:  variable=AWBF
  3616.                         Format 2:  AWBF number  or  AWBF(expression)
  3617.          
  3618.          
  3619.          CLRL      Clear the instruction line command.  Used like CTRL-X by
  3620.                    the environment file to clear the instruction line of
  3621.                    all characters that have been entered.  This command
  3622.                    sets a flag to execute a CTRL-X when the environment
  3623.                    file is exited.
  3624.  
  3625.                                          46
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.          EHB       Set or get environment header background color.
  3635.                    Can be used in two ways.  See the BC statement for color
  3636.                    values.  Format 1 is used to get the current color value
  3637.                    and format 2 is used to set the color.
  3638.                         Format 1:  variable=EHB
  3639.                         Format 2:  EHB number  or  EHB(expression)
  3640.          
  3641.          
  3642.          EHF       Set or get environment header foreground color.
  3643.                    Can be used in two ways.  See the CC statement for color
  3644.                    values.  Format 1 is used to get the current color value
  3645.                    and format 2 is used to set the color.
  3646.                         Format 1:  variable=EHF
  3647.                         Format 2:  EHF number  or  EHF(expression)
  3648.          
  3649.          
  3650.          ELCB      Set or get window selected line background color.
  3651.                    Can be used in two ways.  See the BC statement for color
  3652.                    values.  Format 1 is used to get the current color value
  3653.                    and format 2 is used to set the color.
  3654.                         Format 1:  variable=ELCB
  3655.                         Format 2:  ELCB number  or  ELCB(expression)
  3656.          
  3657.          
  3658.          ELCF      Set or get window selected line foreground color.
  3659.                    Can be used in two ways.  See the CC statement for color
  3660.                    values.  Format 1 is used to get the current color value
  3661.                    and format 2 is used to set the color.
  3662.                         Format 1:  variable=ELCF
  3663.                         Format 2:  ELCF number  or  ELCF(expression)
  3664.          
  3665.          
  3666.          ENVIR     Call environment file sub-routine command.  Used in the
  3667.                    MATHX.DFT file only.  This command is used by the
  3668.                    defaults file to cause the environment file so display
  3669.                    the environment header.  If not done, the environment
  3670.                    header would not be displayed until the mouse cursor was
  3671.                    clicked on the header line.
  3672.          
  3673.          
  3674.          EVHD      Display environment header line statement.  See HEAD
  3675.                    statement for sub-statement descriptions and use.
  3676.                    Once this statement is used by the environment file
  3677.                    the HEAD and HOFF statements will not work from the
  3678.                    instruction line.  (they can still be used by an
  3679.                    application file)
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.                                          47
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.          EWB       Set or get environment menu windows background color.
  3701.                    Can be used in two ways.  See the BC statement for color
  3702.                    values.  Format 1 is used to get the current color value
  3703.                    and format 2 is used to set the color.
  3704.                         Format 1:  variable=EWB
  3705.                         Format 2:  EWB number  or  EWB(expression)
  3706.          
  3707.          
  3708.          EWF       Set or get environment menu windows foreground color.
  3709.                    Can be used in two ways.  See the CC statement for color
  3710.                    values.  Format 1 is used to get the current color value
  3711.                    and format 2 is used to set the color.
  3712.                         Format 1:  variable=EWF
  3713.                         Format 2:  EWF number  or  EWF(expression)
  3714.          
  3715.          
  3716.          EWBB      Set or get environment window border background color.
  3717.                    Can be used in two ways.  See the BC statement for color
  3718.                    values.  Format 1 is used to get the current color value
  3719.                    and format 2 is used to set the color.
  3720.                         Format 1:  variable=EWBB
  3721.                         Format 2:  EWBB number  or  EWBB(expression)
  3722.          
  3723.          
  3724.          EWBF      Set or get environment window border foreground color.
  3725.                    Can be used in two ways.  See the CC statement for color
  3726.                    values.  Format 1 is used to get the current color value
  3727.                    and format 2 is used to set the color.
  3728.                         Format 1:  variable=EWBF
  3729.                         Format 2:  EWBF number  or  EWBF(expression)
  3730.          
  3731.          
  3732.          EXIT      Exit MATH EXTRA and return to DOS command.  This command
  3733.                    sets a flag to execute an <ESC> when the environment
  3734.                    file is exited.
  3735.          
  3736.          
  3737.          FDIR      Find first file using the given file spec and put the
  3738.                    name in string memory.  The * and ? characters can be
  3739.                    used.  Used to find a file to be loaded later.
  3740.                    Note: A comma or carriage return must be used after this
  3741.                    command in the environment file.
  3742.                         Format:  $memory = FDIR path\name
  3743.                         Example  $X=FDIR *.APL,
  3744.                         Example  $Z=FDIR C:\MATH\FILES\*.UTL,
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.                                          48
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.          GETM      Load the normal string memories into the environment
  3767.                    file string memories.  The environment file uses a
  3768.                    different set of string memories during its operation
  3769.                    and this statement is used to allow the environment the
  3770.                    see the contents of the normal set of string memories.
  3771.          
  3772.          
  3773.          GETV      The environment file uses a different set of variables
  3774.                    during its operation and this statement is used to allow
  3775.                    the environment the see the contents of the normal set
  3776.                    of variables.
  3777.                         ENVIRONMENT        NORMAL
  3778.                          A to Z
  3779.                          A' to Z'      =   A to Z
  3780.                          A'' to Z''    =   A' to Z'
  3781.                          A''' to Z'''  =   A'' to Z''
  3782.                                            A''' to Z'''
  3783.                    This statement loads the normal variables A''' to Z'''
  3784.                    to the environment variables A to Z.
  3785.          
  3786.          
  3787.          LIST      Send the F1 to F8 key definitions to the currently
  3788.                    displayed window.  Same as the normal LIST statement
  3789.                    except the data is only sent to a window.
  3790.          
  3791.          
  3792.          LOAD$     Load into application file memory the file named in the
  3793.                    given string memory.
  3794.                         Format:  LOAD$memory character
  3795.                             or:  LOAD$(expression)
  3796.                         Example  LOAD$A
  3797.                              (The file named in $A will be loaded.)
  3798.                              ( LOAD$(1) would do the same thing.)
  3799.          
  3800.          
  3801.          MWBB      Set or get MATHX border background color.
  3802.                    Can be used in two ways.  See the BC statement for color
  3803.                    values.  Format 1 is used to get the current color value
  3804.                    and format 2 is used to set the color.
  3805.                         Format 1:  variable=MWBB
  3806.                         Format 2:  MWBB number  or  MWBB(expression)
  3807.          
  3808.          
  3809.          MWBF      Set or get MATHX border foreground color.
  3810.                    Can be used in two ways.  See the CC statement for color
  3811.                    values.  Format 1 is used to get the current color value
  3812.                    and format 2 is used to set the color.
  3813.                         Format 1:  variable=MWBF
  3814.                         Format 2:  MWBF number  or  MWBF(expression)
  3815.  
  3816.  
  3817.  
  3818.  
  3819.  
  3820.  
  3821.  
  3822.  
  3823.                                          49
  3824.  
  3825.  
  3826.  
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.          NDIR      Find the next file using the given file spec of the FDIR
  3833.                    command.  The FDIR command must be used before NDIR can
  3834.                    be used.
  3835.                         Format:  $memory=NDIR
  3836.                         Example   $a=FDIR *.APL,$b=NDIR,$c=NDIR
  3837.          
  3838.          
  3839.          PLC       Get or set the pick letter color.  This color is used
  3840.                    throughout all wind, menu, and header statements,
  3841.                    environment or otherwise.  Can be used in two ways.
  3842.                    See the FC statement for color values.
  3843.                    Format 1 is used to get the current color value
  3844.                    and format 2 is used to set the color.
  3845.                         Format 1:  variable=PLC
  3846.                         Format 2:  PLC number  or  PLC(expression)
  3847.          
  3848.          
  3849.          RUN$      Run an application file using the string memory for
  3850.                    the file name.  Does not load file into application
  3851.                    memory.  (Temporary load and run.)  Mainly used for
  3852.                    short utilities.  This command sets a flag to execute
  3853.                    the command when the environment file is exited.
  3854.                         Format:  RUN$memory character
  3855.                             or:  RUN$(expression)
  3856.                         Example  RUN$A
  3857.                              (The file named in $A will be run.)
  3858.                              ( RUN$(1) would do the same thing.)
  3859.          
  3860.          
  3861.          SAVS      Save parameters and color setup to the MATHX.SET file.
  3862.                    MATH EXTRA loads this file when it starts up.
  3863.          
  3864.          
  3865.          UWBB      Set or get utility window border background color.
  3866.                    Can be used in two ways.  See the BC statement for color
  3867.                    values.  Format 1 is used to get the current color value
  3868.                    and format 2 is used to set the color.
  3869.                         Format 1:  variable=UWBB
  3870.                         Format 2:  UWBB number  or  UWBB(expression)
  3871.          
  3872.          
  3873.          UWBF      Set or get utility window border foreground color.
  3874.                    Can be used in two ways.  See the CC statement for color
  3875.                    values.  Format 1 is used to get the current color value
  3876.                    and format 2 is used to set the color.
  3877.                         Format 1:  variable=UWBF
  3878.                         Format 2:  UWBF number  or  UWBF(expression)
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.                                          50
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.                                    ERROR MESSAGES
  3899.          
  3900.          
  3901.          Already Installed
  3902.          
  3903.                    Displayed when an attempt is made to install MATHXR
  3904.                    and it is already installed.
  3905.          
  3906.          
  3907.          Cannot Uninstall
  3908.          
  3909.                    Displayed when an attempt is made to uninstall
  3910.                    MATHXR and some other resident program that uses
  3911.                    the same interrupts as MATHXR, was installed
  3912.                    after MATHXR.  MATHXR should be installed last.
  3913.          
  3914.          
  3915.          COULD NOT FIND EDITOR FILE OR NOT ENOUGH MEMORY!
  3916.          EDIT TERMINATED!
  3917.          
  3918.                    Displayed when the editor is not defined or not found
  3919.                    or there is not enough memory available to run it.
  3920.                    See the EDITOR statement.
  3921.          
  3922.          
  3923.          DATA STATEMENT ERROR (VARIABLE TOO BIG)
  3924.          
  3925.                    Displayed when the variable used for a DATA
  3926.                    statement has a value that is larger than the
  3927.                    number of data positions in the data part of the
  3928.                    DATA statement.
  3929.                         example  X=6:DATA X {0,10,20,30,40,50}
  3930.                    (remember there is a zero position in the data)
  3931.          
  3932.          
  3933.          DISPLAY FORM ERROR
  3934.          
  3935.                    Displayed when the answer (decimal form) cannot be
  3936.                    displayed in the form allowed by DIGL and XOFF
  3937.                    statements.  Turn XON or make DIGL bigger.
  3938.          
  3939.          
  3940.          DIVIDE BY ZERO ERROR
  3941.          
  3942.                    Displayed when at some point in the math expression
  3943.                    an attempt is made to divide by zero or divide by
  3944.                    a variable that equals zero.
  3945.          
  3946.          
  3947.          ERROR, Bad COMSPEC data!
  3948.          
  3949.                    Displayed when using the DOS command of the MATHX
  3950.                    program and the program cannot find COMSPEC= in the
  3951.                    environment.  Try adding  SET COMSPEC=COMMAND.COM
  3952.                    on a separate line in the AUTOEXEC.BAT file.
  3953.                    You may have to include the path to COMMAND.COM!
  3954.  
  3955.                                          51
  3956.  
  3957.  
  3958.  
  3959.  
  3960.  
  3961.  
  3962.  
  3963.  
  3964.          EXPONENT OVERFLOW ERROR
  3965.          
  3966.                    Displayed when at some point in the math expression
  3967.                    the exponent of the answer register goes over 200.
  3968.          
  3969.          
  3970.          (EDITOR statement over 40 characters long)
  3971.          SYNTAX ERROR
  3972.          
  3973.                    Displayed when the editor path and command are over 40
  3974.                    characters long.  (MATHX program only)
  3975.          
  3976.          
  3977.          FILE LOAD ERROR, could not find file!
  3978.          
  3979.                    Displayed when the program could not find the
  3980.                    variables or string memories file asked for.
  3981.                    Check and see if the right name was entered.
  3982.                    (MATHX program only)
  3983.          
  3984.          
  3985.          FILE LOAD ERROR, could not open file!
  3986.          
  3987.                    Displayed when for some reason the variable or
  3988.                    string memories file could not be opened.
  3989.                    (MATHX program only)
  3990.          
  3991.          
  3992.          FILE LOAD ERROR, wrong file type!
  3993.          
  3994.                    Displayed when the variables or string memories
  3995.                    file being loaded is not of the same version or
  3996.                    not the right type for what is asked for.
  3997.                    Example, trying to load a string memory file into
  3998.                    the variables.  (MATHX program only)
  3999.          
  4000.          
  4001.          FILE WRITE ERROR, access denied!
  4002.          
  4003.                    Displayed when the variables or string memories
  4004.                    are being saved to a read only disk or for some
  4005.                    other reason the program was denied access to the
  4006.                    disk.  (MATHX program only)
  4007.          
  4008.          
  4009.          FILE WRITE ERROR, not enough memory!
  4010.          
  4011.                    Displayed when there is not enough memory on the
  4012.                    disk for the variables or string memories file.
  4013.                    (MATHX program only)
  4014.  
  4015.  
  4016.  
  4017.  
  4018.  
  4019.  
  4020.  
  4021.                                          52
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.          FILE READ ERROR!
  4031.          
  4032.                    Displayed when for some reason the file could not
  4033.                    be read.
  4034.          
  4035.          
  4036.          (FKEY definition over 40 characters long)
  4037.          SYNTAX ERROR
  4038.          
  4039.                    Displayed when there are more then 40 characters
  4040.                    between FKEY= and <enter>.
  4041.          
  4042.          
  4043.          FUNCTION DEFINITION
  4044.          SYNTAX ERROR
  4045.          
  4046.                    Displayed when the string for the definable
  4047.                    function being used has a syntax error in it.
  4048.                    Look at the string statement used by the function
  4049.                    for the error.
  4050.          
  4051.          
  4052.          GOTO or CALL location number 0 not allowed!
  4053.          
  4054.                    Displayed when an attempt is made to define a GOTO
  4055.                    location as 0. (:#0:)  Location 0 is reserved for
  4056.                    the start of the instruction line or the start of
  4057.                    the math application file.
  4058.          
  4059.          
  4060.          GOTO or CALL location number not defined!
  4061.          
  4062.                    Displayed when an attempt is made to GOTO a
  4063.                    location that does not have a # number defined
  4064.                    position.
  4065.          
  4066.          
  4067.          GOTO or CALL location number too big! (over 25)
  4068.          
  4069.                    Displayed when an attempt is made to GOTO a
  4070.                    location greater then 25 in the instruction line
  4071.                    or when an attempt is made to define a GOTO
  4072.                    location that is greater then 25 in the
  4073.                    instruction line.
  4074.          
  4075.          
  4076.          GOTO or CALL location number used already!
  4077.          
  4078.                    Displayed when an attempt is made to assign two or
  4079.                    more GOTO locations the same number.
  4080.  
  4081.  
  4082.  
  4083.  
  4084.  
  4085.  
  4086.  
  4087.                                          53
  4088.  
  4089.  
  4090.  
  4091.  
  4092.  
  4093.  
  4094.  
  4095.  
  4096.          HEX OVERFLOW ERROR!
  4097.          
  4098.                    Displayed when the Hex value is greater than
  4099.                    0FFFFFFFF. (This is the limit of the hex register)
  4100.          
  4101.          
  4102.          LOG OF ZERO OR NEGATIVE NUMBER ERROR
  4103.          
  4104.                    Displayed when an attempt is made to get the LOG
  4105.                    or LN of zero, a negative number, or a variable
  4106.                    that equals zero or a negative number.
  4107.          
  4108.          
  4109.          Math application file too long to load! (Over 30K)
  4110.          
  4111.                    Displayed when an attempt is made to load an
  4112.                    application file for MATHXR that is more then 30K
  4113.                    in length.
  4114.          
  4115.          
  4116.          MATHX.DFT file too long to load! (Over 2K)
  4117.          
  4118.          MATHXR.DFT file too long to load! (Over 1K)
  4119.          
  4120.                    Displayed when an attempt is made by MATHXR
  4121.                    defaults file that is more than 1K in length or
  4122.                    MATHX to load a default file that is more than
  4123.                    2K in length.
  4124.          
  4125.          
  4126.          Math application file not given!
  4127.          
  4128.                    Displayed when installing MATHXR and no math
  4129.                    application file was given.  Displayed for
  4130.                    information only.  A math application file is
  4131.                    not required.  MATHXR is still installed.
  4132.  
  4133.  
  4134.  
  4135.  
  4136.  
  4137.  
  4138.  
  4139.  
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146.  
  4147.  
  4148.  
  4149.  
  4150.  
  4151.  
  4152.  
  4153.                                          54
  4154.  
  4155.  
  4156.  
  4157.  
  4158.  
  4159.  
  4160.  
  4161.  
  4162.          APPLICATION file not loaded!
  4163.          
  4164.                    Displayed when an attempt is made to use a math
  4165.                    application file and no application file was
  4166.                    loaded.
  4167.          
  4168.          
  4169.          Not Installed
  4170.          
  4171.                    Displayed when an attempt is made to uninstall
  4172.                    MATHXR, and MATHXR was not installed.
  4173.          
  4174.          
  4175.          Parameter too long ERROR!
  4176.          
  4177.                    Displayed when a command line parameter has more
  4178.                    then 40 characters.  If the path and file name is
  4179.                    more then 40 characters long.
  4180.          
  4181.          
  4182.          POWER (ROOT) OF NEGATIVE NUMBER ERROR
  4183.          
  4184.                    Displayed when an attempt is made to take a
  4185.                    negative number or variable to a power that
  4186.                    includes a root portion.    example  -2^2.125
  4187.          
  4188.          
  4189.          Printer does not acknowledge or is out of paper!
  4190.          
  4191.                    Displayed when PON statement is active and an
  4192.                    attempt is made to send something to the printer
  4193.                    and the printer does not acknowledge or is out of
  4194.                    paper.   (printer not turned on)
  4195.          
  4196.          
  4197.          SQUARE ROOT OF NEGATIVE NUMBER ERROR
  4198.          
  4199.                    Displayed when an attempt is made to square root a
  4200.                    negative number or a variable that has a negative
  4201.                    value.
  4202.          
  4203.          
  4204.          STACK ERROR, TOO MANY ()
  4205.          
  4206.                    Displayed when too many parentheses are used in an
  4207.                    expression.  Not very likely, over 100 allowed.
  4208.          
  4209.          
  4210.          String memories not loaded!
  4211.          
  4212.                    Displayed when the MATHX program had trouble
  4213.                    opening or reading the string memories file and
  4214.                    was not able to load the string memories.
  4215.  
  4216.  
  4217.  
  4218.  
  4219.                                          55
  4220.  
  4221.  
  4222.  
  4223.  
  4224.  
  4225.  
  4226.  
  4227.  
  4228.          String memories not saved!
  4229.          
  4230.                    Displayed when the MATHX program had trouble
  4231.                    opening or writing the string memories file and
  4232.                    was not able to save the string memories.
  4233.          
  4234.          
  4235.          SYNTAX ERROR
  4236.          
  4237.                    Displayed when data or an instruction is missing,
  4238.                    not in the correct form or when a statement is not
  4239.                    in the correct form or not separated with a colon
  4240.                    or comma.  The instruction line is returned and the
  4241.                    cursor is set at the location of the error.
  4242.          
  4243.          
  4244.          SYNTAX ERROR
  4245.          THE NEXT 50 CHARACTERS FROM THE POINT OF ERROR ARE:
  4246.          
  4247.                    Displayed when an application file, defaults data
  4248.                    or help file being used has a syntax error.  In this
  4249.                    case the next 50 characters are displayed from the
  4250.                    point of the error or until the end of the file,
  4251.                    whichever comes first. (end of file is indicated by
  4252.                    a small left arrow)
  4253.          
  4254.          
  4255.          (TITLE statement over 24 characters long!)
  4256.          SYNTAX ERROR
  4257.          
  4258.                    Displayed when the title statement has more then 24
  4259.                    characters between TITLE= and <enter>.  (MATHX only)
  4260.          
  4261.          
  4262.          Too many parameters ERROR!
  4263.          
  4264.                    Displayed when the command line has more then just
  4265.                    the name of a file to be loaded or if an
  4266.                    application file's extension has more then three
  4267.                    characters.
  4268.          
  4269.          
  4270.          Variables not loaded!
  4271.          
  4272.                    Displayed when the MATHX program had trouble
  4273.                    opening or reading the variables file and was
  4274.                    unable to load the variables.
  4275.          
  4276.          
  4277.          Variables not saved!
  4278.          
  4279.                    Displayed when the MATHX program had trouble
  4280.                    opening or writing to the variables file and
  4281.                    was unable to save the variables.
  4282.  
  4283.  
  4284.  
  4285.                                          56
  4286.  
  4287.  
  4288.  
  4289.  
  4290.  
  4291.